aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/zlib/01-all-disable_tests.patch
blob: 55de6a471dd6c6daf3f59f7f970b93965e4f43d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -229,7 +229,7 @@
 #============================================================================
 # Example binaries
 #============================================================================
-
+if(ENABLE_TESTS)
 add_executable(example test/example.c)
 target_link_libraries(example zlib)
 add_test(example example)
@@ -247,3 +247,4 @@
     target_link_libraries(minigzip64 zlib)
     set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
 endif()
+endif()