forked from qt-creator/qt-creator
CMake: CMakeConfigurationKitInformation::setup fix
CMakeConfigurationKitInformation::setup did override the existing value when it was called. That is not intended, the setup method should only set a value if none exists. Change-Id: I86d386982311020dc3dbb3a705e1ff87ad02e09c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -624,7 +624,7 @@ QList<Task> CMakeConfigurationKitInformation::validate(const Kit *k) const
|
||||
|
||||
void CMakeConfigurationKitInformation::setup(Kit *k)
|
||||
{
|
||||
if (k)
|
||||
if (k && !k->hasValue(CONFIGURATION_ID))
|
||||
k->setValue(CONFIGURATION_ID, defaultValue(k));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user