evaleev / libint

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

Fix CMake build of Fortran interface #142

Closed pseewald closed 5 years ago

pseewald commented 5 years ago

CMake build of fortran interface seems to be broken in libint v2.6.0, cmake fails with the error message:

CMake Error at CMakeLists.txt:346 (target_link_libraries):
  Target "libint_f" of type OBJECT_LIBRARY may not be linked into another
  target.  One may link only to STATIC or SHARED libraries, or to executables
  with the ENABLE_EXPORTS property set.

This pr should fix it, I tested with cmake --build . --target check.