forked from qt-creator/qt-creator
CMakePM: Allow default build configurations for presets
Restrict the build types only if CMAKE_BUILD_TYPE or CMAKE_CONFIGURATION_TYPES cache variables are set. Change-Id: Ib88dcd5d4a0fca86f86e95815edff1116f896324 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1985,6 +1985,8 @@ CMakeBuildConfigurationFactory::BuildType CMakeBuildConfigurationFactory::buildT
|
||||
return BuildTypeRelWithDebInfo;
|
||||
if (bt == "minsizerel")
|
||||
return BuildTypeMinSizeRel;
|
||||
if (bt == "profile")
|
||||
return BuildTypeProfile;
|
||||
return BuildTypeNone;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user