diff options
author | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-15 17:26:55 (GMT) |
---|---|---|
committer | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-15 17:26:55 (GMT) |
commit | 68018a795477825bb1e4b6d10902891cf9577ed9 (patch) | |
tree | 18de9b6d07422a33ec98f18640ee50d131c4170f /src/tests/CMakeLists.txt | |
parent | 33516bd35c7da26e5e7f164f7ce4fa05808e8bd7 (diff) |
Fix linking with math library
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r-- | src/tests/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 094f5f5..535b442 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -13,7 +13,7 @@ configure_file(tng_io_testing.h.in ${CMAKE_BINARY_DIR}/generated/tng_io_testing. include_directories(${CMAKE_BINARY_DIR}/generated/) add_executable(tng_testing tng_io_testing.c) -target_link_libraries(tng_testing tng_io) +target_link_libraries(tng_testing tng_io m) if(HAVE_INTTYPES_H) set_target_properties(tng_testing PROPERTIES COMPILE_DEFINITIONS USE_STD_INTTYPES_H=1) @@ -25,10 +25,10 @@ if(OPENMP_FOUND) endif() add_executable(tng_io_read_pos tng_io_read_pos.c) -target_link_libraries(tng_io_read_pos tng_io) +target_link_libraries(tng_io_read_pos tng_io m) add_executable(tng_parallel_read tng_parallel_read.c) -target_link_libraries(tng_parallel_read tng_io) +target_link_libraries(tng_parallel_read tng_io m) if(BUILD_FORTRAN) # This does not work due to a bug in CMake. Remove lines below if no fortran compiler is found. |