Skip to content

Commit

Permalink
HDF5 tools corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Dec 24, 2024
1 parent ba623a8 commit 5dac582
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/hdf5_tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ add_library(hdf5_tools
target_link_libraries(hdf5_tools PUBLIC ${HDF5_LIBRARIES} ${HDF5_HL_LIBRARIES})

if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
install (TARGETS hdf5_tools DESTINATION ${CMAKE_SOURCE_DIR}/lib)
install (DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION ${CMAKE_SOURCE_DIR}/include)
install (TARGETS hdf5_tools DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/lib)
install (DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/include)
elseif (CMAKE_Fortran_COMPILER_ID MATCHES "Intel")
install (TARGETS hdf5_tools DESTINATION ${CMAKE_SOURCE_DIR}/ifort/lib)
install (DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION ${CMAKE_SOURCE_DIR}/ifort/include)
install (TARGETS hdf5_tools DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ifort/lib)
install (DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}/ DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/ifort/include)
endif ()

add_library(LIBNEO::hdf5_tools ALIAS hdf5_tools)

0 comments on commit 5dac582

Please sign in to comment.