diff options
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f5bb42..7385f6d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -900,6 +900,10 @@ if(NOT DEFINED BUILD_SHARED_LIBS) else() add_library(zlib ${ZLIB_ALL_SRCS}) + if(NOT BUILD_SHARED_LIBS) + add_library(zlibstatic ALIAS zlib) + endif() + set(ZLIB_INSTALL_LIBRARIES zlib) endif() |