diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2025-12-24 18:32:37 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-27 17:57:46 -0800 |
| commit | bd1bfbdc1296b38dfa2a9c7292c06c7e4a48fc7f (patch) | |
| tree | dc3398914e73b1f3cf0687ddb2ad780be9f46d4b | |
| parent | ef16d9224df4f8467053df3cfc86703905f039f8 (diff) | |
| download | zlib-bd1bfbdc1296b38dfa2a9c7292c06c7e4a48fc7f.tar.gz zlib-bd1bfbdc1296b38dfa2a9c7292c06c7e4a48fc7f.tar.bz2 zlib-bd1bfbdc1296b38dfa2a9c7292c06c7e4a48fc7f.zip | |
CMake: Fix compile for OmniOS.
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 66dd7281..8aa8751f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -189,8 +189,9 @@ if(ZLIB_BUILD_SHARED) | |||
| 189 | EXPORT_NAME ZLIB | 189 | EXPORT_NAME ZLIB |
| 190 | OUTPUT_NAME z) | 190 | OUTPUT_NAME z) |
| 191 | if(UNIX | 191 | if(UNIX |
| 192 | AND NOT APPLE | 192 | AND NOT APPLE |
| 193 | AND NOT (CMAKE_SYSTEM_NAME STREQUAL AIX)) | 193 | AND NOT (CMAKE_SYSTEM_NAME STREQUAL AIX) |
| 194 | AND NOT (CMAKE_SYSTEM_NAME STREQUAL SunOS)) | ||
| 194 | # On unix-like platforms the library is almost always called libz | 195 | # On unix-like platforms the library is almost always called libz |
| 195 | set_target_properties( | 196 | set_target_properties( |
| 196 | zlib | 197 | zlib |
| @@ -199,7 +200,8 @@ if(ZLIB_BUILD_SHARED) | |||
| 199 | endif( | 200 | endif( |
| 200 | UNIX | 201 | UNIX |
| 201 | AND NOT APPLE | 202 | AND NOT APPLE |
| 202 | AND NOT (CMAKE_SYSTEM_NAME STREQUAL AIX)) | 203 | AND NOT (CMAKE_SYSTEM_NAME STREQUAL AIX) |
| 204 | AND NOT (CMAKE_SYSTEM_NAME STREQUAL SunOS)) | ||
| 203 | endif(ZLIB_BUILD_SHARED) | 205 | endif(ZLIB_BUILD_SHARED) |
| 204 | 206 | ||
| 205 | if(ZLIB_BUILD_STATIC) | 207 | if(ZLIB_BUILD_STATIC) |
