Skip to content

Commit

Permalink
Allow specification of an alternate Fortran module install directory
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Sep 8, 2023
1 parent 3afed6e commit a00b17b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,13 @@ install(
EXPORT DBCSRTargets
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
if (NOT CMAKE_INSTALL_Fortran_MODULES)
sec(CMAKE_INSTALL_Fortran_MODULES "${CMAKE_INSTALL_INCLUDEDIR}")
endif ()
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/dbcsr_api.mod"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
DESTINATION "${CMAKE_INSTALL_Fortran_MODULES}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/dbcsr_tensor_api.mod"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
DESTINATION "${CMAKE_INSTALL_Fortran_MODULES}")

if (WITH_C_API)
install(
Expand Down

0 comments on commit a00b17b

Please sign in to comment.