0002-skip-building-examples.patch 546 B

1234567891011121314151617
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index b412dc7..f46c8e6 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -194,6 +194,7 @@ endif()
  6. # Example binaries
  7. #============================================================================
  8. +if (0)
  9. add_executable(example test/example.c)
  10. target_link_libraries(example zlib)
  11. add_test(example example)
  12. @@ -211,3 +212,4 @@ if(HAVE_OFF64_T)
  13. target_link_libraries(minigzip64 zlib)
  14. set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64")
  15. endif()
  16. +endif()