diff options
author | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-14 20:59:05 (GMT) |
---|---|---|
committer | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-17 20:52:32 (GMT) |
commit | 0e1faa28cbd12d400b876f7a21d91aad5a837196 (patch) | |
tree | 172e3de65933e8056a996fc923a06f90a62081c2 /Source/cmTarget.cxx | |
parent | 56c204e8eb8914b2ca273a56119cf1c40e13d75d (diff) | |
download | CMake-0e1faa28cbd12d400b876f7a21d91aad5a837196.zip CMake-0e1faa28cbd12d400b876f7a21d91aad5a837196.tar.gz CMake-0e1faa28cbd12d400b876f7a21d91aad5a837196.tar.bz2 |
cmMakefile: Separate custom command setup from actual creation
Refactor custom command manipulation functions to consist of a setup and a
commit stage. The commit stage will be delayed to generate time.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 6637e32..83d69a4 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -694,13 +694,9 @@ std::string cmTargetInternals::ProcessSourceItemCMP0049(const std::string& s) return src; } -cmSourceFile* cmTarget::AddSourceCMP0049(const std::string& s) +std::string cmTarget::GetSourceCMP0049(const std::string& s) { - std::string src = impl->ProcessSourceItemCMP0049(s); - if (!s.empty() && src.empty()) { - return nullptr; - } - return this->AddSource(src); + return impl->ProcessSourceItemCMP0049(s); } struct CreateLocation |