diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-08 21:11:22 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-07-22 18:25:45 (GMT) |
commit | d6239507b2f08bd1fee53c84af3998a14fa9819b (patch) | |
tree | c5f4e81fe9f2149498b27de03e5ab5f281bb1ce5 /Source/cmTarget.cxx | |
parent | ef17bbefd7c504af65f2e6c52f5d7fa8e82d087e (diff) | |
download | CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.zip CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.tar.gz CMake-d6239507b2f08bd1fee53c84af3998a14fa9819b.tar.bz2 |
cmMakefile: Split accessors for compile definitions and origins.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index ac39387..906517b 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1954,12 +1954,13 @@ void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry, } //---------------------------------------------------------------------------- -void cmTarget::InsertCompileDefinition(const cmValueWithOrigin &entry) +void cmTarget::InsertCompileDefinition(std::string const& entry, + cmListFileBacktrace const& bt) { - cmGeneratorExpression ge(entry.Backtrace); + cmGeneratorExpression ge(bt); this->Internal->CompileDefinitionsEntries.push_back( - new cmTargetInternals::TargetPropertyEntry(ge.Parse(entry.Value))); + new cmTargetInternals::TargetPropertyEntry(ge.Parse(entry))); } //---------------------------------------------------------------------------- |