Skip to content

CMake: Make libint2 Fortran interface explicit#423

Open
Growl1234 wants to merge 1 commit into
evaleev:masterfrom
Growl1234:cmake-fortran
Open

CMake: Make libint2 Fortran interface explicit#423
Growl1234 wants to merge 1 commit into
evaleev:masterfrom
Growl1234:cmake-fortran

Conversation

@Growl1234

Copy link
Copy Markdown
Contributor

Libint2 currently installs the libint_f.mod module file without exporting a corresponding CMake target. As a result, downstream projects have to locate compiler-specific Fortran module directories manually.

Introduce an installable int_f wrapper library, exported as Libint2::int_f. Linking this target provides the Fortran wrapper library, the underlying Libint2 library, and the correct module include directory through its usage requirements.

The Fortran module installation directory is now controlled by CMAKE_INSTALL_Fortran_MODULES, defaulting to the existing include-directory location. Distribution packages (Fedora RPM-build) can override it at configure time, avoiding post-install relocation of libint_f.mod.

This allows downstream projects to consume the Fortran interface through the exported package metadata rather than searching for libint_f.mod themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant