diff options
author | Aki <please@ignore.pl> | 2024-03-06 21:47:34 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-03-06 21:47:34 +0100 |
commit | a85fcbf8720562e77e0441ac26cb99d89564400c (patch) | |
tree | a15d30b7d00645685c50c291871d34aa5b188bc0 /contrib/zlib/4.examples.patch | |
parent | 54fa233a00607b9436c03c78b50b9107a33baa0a (diff) | |
parent | 1c558822681bbed5121bcc19816cbbac6a437b2a (diff) | |
download | starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.zip starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.tar.gz starshatter-a85fcbf8720562e77e0441ac26cb99d89564400c.tar.bz2 |
External projects with established upstream are no longer part of this source tree
Diffstat (limited to 'contrib/zlib/4.examples.patch')
-rw-r--r-- | contrib/zlib/4.examples.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/contrib/zlib/4.examples.patch b/contrib/zlib/4.examples.patch new file mode 100644 index 0000000..3c21686 --- /dev/null +++ b/contrib/zlib/4.examples.patch @@ -0,0 +1,29 @@ +diff '--color=auto' -arNu a/CMakeLists.txt b/CMakeLists.txt +--- a/CMakeLists.txt 2024-03-03 01:58:26.368799737 +0100 ++++ b/CMakeLists.txt 2024-03-03 01:58:33.615466706 +0100 +@@ -215,25 +215,3 @@ + if(NOT SKIP_INSTALL_FILES AND NOT SKIP_INSTALL_ALL ) + install(FILES ${ZLIB_PC} DESTINATION "${INSTALL_PKGCONFIG_DIR}") + endif() +- +-#============================================================================ +-# Example binaries +-#============================================================================ +- +-add_executable(example test/example.c) +-target_link_libraries(example zlib) +-add_test(example example) +- +-add_executable(minigzip test/minigzip.c) +-target_link_libraries(minigzip zlib) +- +-if(HAVE_OFF64_T) +- add_executable(example64 test/example.c) +- target_link_libraries(example64 zlib) +- set_target_properties(example64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") +- add_test(example64 example64) +- +- add_executable(minigzip64 test/minigzip.c) +- target_link_libraries(minigzip64 zlib) +- set_target_properties(minigzip64 PROPERTIES COMPILE_FLAGS "-D_FILE_OFFSET_BITS=64") +-endif() |