summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-29 08:42:31 (GMT)
committerMagnus Lundborg <lundborg.magnus@gmail.com>2013-11-29 08:42:31 (GMT)
commit19d892354bdfb426133c72fda8a07c9cae747029 (patch)
tree01087feb8e38e2b5d779a83ee569db4deaee9840
parentf4d4320270c604354ed7bf5463ba58eb6bf8577b (diff)
Make all testing code define USE_STD_INTTYPES_H to print properly.
-rw-r--r--src/tests/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index b3ee6a1..3d21a5d 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -54,6 +54,9 @@ if(TNG_BUILD_EXAMPLES)
if(UNIX)
target_link_libraries(tng_io_read_pos m)
endif()
+ if(HAVE_INTTYPES_H)
+ set_property(TARGET tng_io_read_pos APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H=1)
+ endif()
set_property(TARGET tng_io_read_pos PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples)
add_executable(tng_io_read_pos_util tng_io_read_pos_util.c)
@@ -61,6 +64,9 @@ if(TNG_BUILD_EXAMPLES)
if(UNIX)
target_link_libraries(tng_io_read_pos_util m)
endif()
+ if(HAVE_INTTYPES_H)
+ set_property(TARGET tng_io_read_pos_util APPEND PROPERTY COMPILE_DEFINITIONS USE_STD_INTTYPES_H=1)
+ endif()
set_property(TARGET tng_io_read_pos_util PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/examples)
if(TNG_BUILD_FORTRAN)
contact: Jan Huwald // Impressum