summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@gmail.com>2019-12-07 14:03:16 (GMT)
committerCristian Adam <cristian.adam@gmail.com>2019-12-07 14:44:38 (GMT)
commitfa93b4a59bd639c995ffdf8a5c41dc587c160716 (patch)
treeb7adad006caae1acba0339f1ed96b2c5073afbbe /Source/cmLocalGenerator.cxx
parent5ae07e7166c6cb7eada2a2d171d216039d977058 (diff)
downloadCMake-fa93b4a59bd639c995ffdf8a5c41dc587c160716.zip
CMake-fa93b4a59bd639c995ffdf8a5c41dc587c160716.tar.gz
CMake-fa93b4a59bd639c995ffdf8a5c41dc587c160716.tar.bz2
Unity: Proper handling of object libraries
Fixes: #20051
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index b211c34..8d7b350 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2307,6 +2307,7 @@ void cmLocalGenerator::AddPchDependencies(cmGeneratorTarget* target)
}
const std::string buildType = cmSystemTools::UpperCase(config);
+ // FIXME: Refactor collection of sources to not evaluate object libraries.
std::vector<cmSourceFile*> sources;
target->GetSourceFiles(sources, buildType);
@@ -2469,6 +2470,7 @@ void cmLocalGenerator::AddUnityBuild(cmGeneratorTarget* target)
cmStrCat(this->GetCurrentBinaryDirectory(), "/CMakeFiles/",
target->GetName(), ".dir/Unity/");
+ // FIXME: Refactor collection of sources to not evaluate object libraries.
std::vector<cmSourceFile*> sources;
target->GetSourceFiles(sources, buildType);