diff options
author | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-17 18:17:17 (GMT) |
---|---|---|
committer | Daniel Spangberg <daniels@kemi.uu.se> | 2013-05-17 18:17:17 (GMT) |
commit | 494702b3a59f3670af8da7acf7e8baf6ae4f7dd4 (patch) | |
tree | 7724580fa811ff7f02c95eb3e79fc74798e0f27a /src/tests/CMakeLists.txt | |
parent | 47bc4acb6a7373a359b3b3a73302ebd985dedd1b (diff) |
Fix errors introduced when doing if(UNIX) in CMakeLists.txt
Fix declaration of variables not at beginning of scope (breaks C89) in tng compress testsuite.
Diffstat (limited to 'src/tests/CMakeLists.txt')
-rw-r--r-- | src/tests/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index 42de927..303035e 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -12,8 +12,9 @@ configure_file(${TRAJECTORY_SOURCE_DIR}/include/tng_io_testing.h.in ${CMAKE_BINA include_directories(${CMAKE_BINARY_DIR}/generated/) add_executable(tng_testing tng_io_testing.c) +target_link_libraries(tng_testing tng_io) if(UNIX) -target_link_libraries(tng_testing tng_io m) +target_link_libraries(tng_testing m) endif() if(HAVE_INTTYPES_H) @@ -29,13 +30,15 @@ if(OPENMP_FOUND) endif() add_executable(tng_io_read_pos tng_io_read_pos.c) +target_link_libraries(tng_io_read_pos tng_io) if(UNIX) -target_link_libraries(tng_io_read_pos tng_io m) +target_link_libraries(tng_io_read_pos m) endif() add_executable(tng_parallel_read tng_parallel_read.c) +target_link_libraries(tng_parallel_read tng_io) if(UNIX) -target_link_libraries(tng_parallel_read tng_io m) +target_link_libraries(tng_parallel_read m) endif() if(BUILD_FORTRAN) |