aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-09-10 15:41:42 +0200
committerThomas White <taw@physics.org>2020-09-10 15:41:42 +0200
commit8533b4666bb7758a2f07d0715aba49ddaebe8fc9 (patch)
tree4827dd5c3bfa4a6362f7f880db4d7036062a753f /tests
parent64b61c7c4da1bb5f38becb857c712a3233b2c9c4 (diff)
CMake: Use ${HDF5_C_LIBRARIES} instead of -lhdf5
Fixes linking on Mac OS
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f28b0cb9..5d365583 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -95,37 +95,37 @@ add_test(NAME polarisation_check
add_executable(evparse1 evparse1.c)
target_include_directories(evparse1 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse1 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse1 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse1 evparse1)
add_executable(evparse2 evparse2.c)
target_include_directories(evparse2 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse2 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse2 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse2 evparse2)
add_executable(evparse3 evparse3.c)
target_include_directories(evparse3 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse3 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse3 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse3 evparse3)
add_executable(evparse4 evparse4.c)
target_include_directories(evparse4 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse4 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse4 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse4 evparse4)
add_executable(evparse5 evparse5.c)
target_include_directories(evparse5 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse5 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse5 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse5 evparse5)
add_executable(evparse6 evparse6.c)
target_include_directories(evparse6 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse6 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse6 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse6 evparse6)
add_executable(evparse7 evparse7.c)
target_include_directories(evparse7 PRIVATE ${COMMON_INCLUDES})
-target_link_libraries(evparse7 ${COMMON_LIBRARIES} -lhdf5)
+target_link_libraries(evparse7 ${COMMON_LIBRARIES} ${HDF5_C_LIBRARIES})
add_test(evparse7 evparse7)
add_executable(ev_enum1 ev_enum1.c)