diff options
author | past-due <30942300+past-due@users.noreply.github.com> | 2021-03-14 16:53:07 -0400 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2021-03-15 17:03:35 +0100 |
commit | 9f1ebac36ed7f74e2413aec07bb74a4793b34b83 (patch) | |
tree | f5850e0cad2d781c1d3efb0fe2160b3bc02774cf | |
parent | aeffa9bbf4ef114ebccddfe45a38c6128437333d (diff) |
[CMake] Add zlibstatic alias when BUILD_SHARED_LIBS is "OFF"
-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() |