diff options
-rw-r--r-- | src/tests/CMakeLists.txt | 6 |
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) |