diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-09 14:09:53 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2018-01-10 16:21:11 (GMT) |
commit | d6dfde3cd35b4e1747f5658b585022961aa800b3 (patch) | |
tree | 139e25187509dab98b8737c172971673340688e0 /Source/cmTarget.cxx | |
parent | b0716fbcc5be83ecd082e8b6d101f1137d6f16f8 (diff) | |
download | CMake-d6dfde3cd35b4e1747f5658b585022961aa800b3.zip CMake-d6dfde3cd35b4e1747f5658b585022961aa800b3.tar.gz CMake-d6dfde3cd35b4e1747f5658b585022961aa800b3.tar.bz2 |
cmSourceFile: mark known locations as such
Primarily, this includes:
- the rule files generated for custom targets;
- source files representing custom targets directly;
- outputs of custom commands;
- byproducts of custom commands; and
- dependencies of custom commands.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 55b2c51..1974be3 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -607,7 +607,8 @@ public: cmSourceFile* cmTarget::AddSource(const std::string& src) { - cmSourceFileLocation sfl(this->Makefile, src); + cmSourceFileLocation sfl(this->Makefile, src, + cmSourceFileLocationKind::Known); if (std::find_if(this->Internal->SourceEntries.begin(), this->Internal->SourceEntries.end(), TargetPropertyEntryFinder(sfl)) == @@ -619,7 +620,8 @@ cmSourceFile* cmTarget::AddSource(const std::string& src) if (cmGeneratorExpression::Find(src) != std::string::npos) { return nullptr; } - return this->Makefile->GetOrCreateSource(src); + return this->Makefile->GetOrCreateSource(src, false, + cmSourceFileLocationKind::Known); } void cmTarget::AddLinkDirectory(const std::string& d) |