From: Deniz Bahadir Date: Fri, 15 Sep 2023 13:46:56 +0000 (+0200) Subject: Fix examining value of GENERATOR_IS_MULTI_CONFIG X-Git-Tag: 2.1.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=401aeb8b867d27ebbcdb44c49a727935ab707103;p=thirdparty%2Fzlib-ng.git Fix examining value of GENERATOR_IS_MULTI_CONFIG CMake does not define a variable GENERATOR_IS_MULTI_CONFIG by default. Instead it sets a global property of that name. In order to examine its value it first has to be retrieved and stored into a (local) variable, which is what this commit does. fixes: #1574 Signed-off-by: Deniz Bahadir --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6cccb4659..bf0423b95 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,6 +57,7 @@ endif() # Make sure we use an appropriate BUILD_TYPE by default, "Release" to be exact # this should select the maximum generic optimisation on the current platform (i.e. -O3 for gcc/clang) +get_property(GENERATOR_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(NOT GENERATOR_IS_MULTI_CONFIG) if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "Release" CACHE STRING