evaleev / libint

Libint: high-performance library for computing Gaussian integrals in quantum mechanics
Other
218 stars 97 forks source link

CMake unconditionally installs libint2.pc into lib/pkgconfig #230

Closed mbanck closed 7 months ago

mbanck commented 2 years ago

The cmake build systems decides to override the standard CMAKE_INSTALL_LIBDIR with LIBINT2_INSTALL_LIBDIR (why?) for the libraries, but it uses a hardcoded lib/pkgconfig directory for libint2.pc (but see #225 - the generated libint2.pc is broken anyway):

# install cmake-processed files
install(FILES ${PROJECT_BINARY_DIR}/libint2.pc
        DESTINATION lib/pkgconfig)

This leads to libint2.pc not ending up in the same place as the library (they go into /usr/lib/<gnu-triplet>/ on most distributions in order to support multiarch).

loriab commented 2 years ago

I think this is addressed in #233 .

mbanck commented 2 years ago

Sounds good on first glance; I'm sorry, but I don't have the bandwidth right now to check out that #233 PR, I'll try to give it a spin with respect to distribution packaging ASAP (unless @susilehtola did already?)

susilehtola commented 2 years ago

I haven't updated libint2 in Fedora since Aug 2019 when 2.6.0 was released...

susilehtola commented 2 years ago

I've been waiting for the issues with Psi4 (including CMake in libint2) to be addressed

loriab commented 2 years ago

Sounds good on first glance; I'm sorry, but I don't have the bandwidth right now to check out that #233 PR

Sure, no problem. #233 isn't ready for trial yet, and it needs EFV approval, too. I just wanted to record that this issue should be fixed up.

@susilehtola, yes, I'm working on the gmp/mpfr/eigen detection.

loriab commented 10 months ago

This should be minimally addressed in #271 . The library is still going to LIBINT2_INSTALL_LIBDIR because I'm not making unnecessary changes, but the pc file goes to CMAKE_INSTALL_LIBDIR/pkgconfig. Thus locations are adjustable.