aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/zlib/01-all-disable_tests.patch
blob: 531938c9392281e985cccfe511df77f3b04a86d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -194,6 +194,7 @@
 # Example binaries
 #============================================================================

+if(ENABLE_TESTS)
 add_executable(example test/example.c)
 target_link_libraries(example zlib)
 add_test(example example)
@@ -211,3 +212,4 @@
     target_link_libraries(minigzip64 zlib)
     set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
 endif()
+endif()