diff --git a/builtins/zlib/CMakeLists.txt b/builtins/zlib/CMakeLists.txt index 61da09c0c3c40..aa5755adb5cf3 100644 --- a/builtins/zlib/CMakeLists.txt +++ b/builtins/zlib/CMakeLists.txt @@ -126,7 +126,7 @@ endif() add_library(ZLIB::ZLIB ALIAS ZLIB) -set(ZLIB_LIBRARY $ CACHE INTERNAL "") +set(ZLIB_LIBRARY $ CACHE INTERNAL FORCE "") set(ZLIB_LIBRARIES ZLIB::ZLIB CACHE INTERNAL "") if(DEFINED ZLIB_LIBRARY_DEBUG)