diff options
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 20eaa9e..74bc1a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -216,12 +216,12 @@ if(ZLIB_BUILD_EXAMPLES) | |||
216 | 216 | ||
217 | if(HAVE_OFF64_T) | 217 | if(HAVE_OFF64_T) |
218 | add_executable(zlib_example64 test/example.c) | 218 | add_executable(zlib_example64 test/example.c) |
219 | target_compile_definitions(zlib_example64 PRIVATE LARGEFILE64_SOURCE=1) | ||
219 | target_link_libraries(zlib_example64 zlib) | 220 | target_link_libraries(zlib_example64 zlib) |
220 | set_target_properties(zlib_example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") | ||
221 | add_test(zlib_example64 zlib_example64) | 221 | add_test(zlib_example64 zlib_example64) |
222 | 222 | ||
223 | add_executable(minigzip64 test/minigzip.c) | 223 | add_executable(minigzip64 test/minigzip.c) |
224 | target_compile_definitions(minigzip64 PRIVATE LARGEFILE64_SOURCE=1) | ||
224 | target_link_libraries(minigzip64 zlib) | 225 | target_link_libraries(minigzip64 zlib) |
225 | set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") | ||
226 | endif() | 226 | endif() |
227 | endif() | 227 | endif() |