diff --git a/CMakeLists.txt b/CMakeLists.txt index aab1a542..dbc9c893 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ else() endif() # By default, configure in RelWithDebInfo configuration -if(NOT SDLIMAGE_ROOTPROJECT) +if(SDLIMAGE_ROOTPROJECT) get_property(is_multi_config GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG) if(is_multi_config) # The first item in CMAKE_CONFIGURATION_TYPES is the default configuration