mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 19:43:23 +08:00
cmMakefile: Register explicit object sources more efficiently
`AddTargetObject` knows the location of object files.
This commit is contained in:
@@ -3454,7 +3454,8 @@ void cmMakefile::CreateGeneratedOutputs(
|
|||||||
void cmMakefile::AddTargetObject(std::string const& tgtName,
|
void cmMakefile::AddTargetObject(std::string const& tgtName,
|
||||||
std::string const& objFile)
|
std::string const& objFile)
|
||||||
{
|
{
|
||||||
cmSourceFile* sf = this->GetOrCreateSource(objFile, true);
|
cmSourceFile* sf =
|
||||||
|
this->GetOrCreateSource(objFile, true, cmSourceFileLocationKind::Known);
|
||||||
sf->SetObjectLibrary(tgtName);
|
sf->SetObjectLibrary(tgtName);
|
||||||
sf->SetProperty("EXTERNAL_OBJECT", "1");
|
sf->SetProperty("EXTERNAL_OBJECT", "1");
|
||||||
#if !defined(CMAKE_BOOTSTRAP)
|
#if !defined(CMAKE_BOOTSTRAP)
|
||||||
|
Reference in New Issue
Block a user