diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-13 14:22:26 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-07-13 15:34:34 (GMT) |
commit | 29c7546a6150b951d5d8e3819ec937dd1a9ad7bc (patch) | |
tree | 7a5d01d9f8367e3bae50f9efb10b506a811481e9 /Source/cmGlobalGenerator.cxx | |
parent | 529004738abd78fa8ae9d7197e7fb67721245904 (diff) | |
download | CMake-29c7546a6150b951d5d8e3819ec937dd1a9ad7bc.zip CMake-29c7546a6150b951d5d8e3819ec937dd1a9ad7bc.tar.gz CMake-29c7546a6150b951d5d8e3819ec937dd1a9ad7bc.tar.bz2 |
cmGlobalGenerator: Only compute build files for all targets
If we're creating generation objects for imported targets only, we
don't need the export sets. Only compute build file generators
if generating for all targets.
Fixes: #23709
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 156ecce..c75198d 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1361,7 +1361,9 @@ void cmGlobalGenerator::CreateGenerationObjects(TargetTypes targetTypes) this->CheckTargetProperties(); } this->CreateGeneratorTargets(targetTypes); - this->ComputeBuildFileGenerators(); + if (targetTypes == TargetTypes::AllTargets) { + this->ComputeBuildFileGenerators(); + } } void cmGlobalGenerator::CreateImportedGenerationObjects( |