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:
hjk
2024-01-30 14:33:19 +01:00
parent 2f13651344
commit 3fad1a21e5
4 changed files with 8 additions and 5 deletions

View File

@@ -1279,7 +1279,7 @@ KitAspect *CMakeConfigurationKitAspect::createKitAspect(Kit *k)
return cmakeConfigurationKitAspectFactory().createKitAspect(k);
}
void CMakeKitAspect::createFactories()
void Internal::setupCMakeKitAspects()
{
cmakeKitAspectFactory();
cmakeGeneratorKitAspectFactory();