diff --git a/CMakeLists.txt b/CMakeLists.txt index 33c8a7e0e508df6eece19387286436df9ba4fd9a..534380b9b2c9bb6025a0b7405fe0d64e5316f0fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,8 @@ endif () # LoadStaticSharedTargets is a CMake script, which we never want to debug # If using a multi config generator -if (GENERATOR_IS_MULTI_CONFIG) +get_property(_IS_MULTI_CONFIG GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) +if (_IS_MULTI_CONFIG) set(CMAKE_CONFIGURATION_TYPES "Release") set(CMAKE_DEFAULT_BUILD_TYPE "Release") # If using a single config generator