forked from qt-creator/qt-creator
CMake: Use a setup function for kit aspects
Some connects() in the CMakeToolManager ctor triggered accesses to the s_instance there before it was assigned. Solve the issue by moving the triggering code (CMakeKitAspect setup) out of the class. Change-Id: Ied0fc6b0b0eb87c29503ecb20e337289edecd203 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1279,7 +1279,7 @@ KitAspect *CMakeConfigurationKitAspect::createKitAspect(Kit *k)
|
||||
return cmakeConfigurationKitAspectFactory().createKitAspect(k);
|
||||
}
|
||||
|
||||
void CMakeKitAspect::createFactories()
|
||||
void Internal::setupCMakeKitAspects()
|
||||
{
|
||||
cmakeKitAspectFactory();
|
||||
cmakeGeneratorKitAspectFactory();
|
||||
|
||||
Reference in New Issue
Block a user