summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-07-08 21:11:22 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-07-22 18:25:45 (GMT)
commitd6239507b2f08bd1fee53c84af3998a14fa9819b (patch)
treec5f4e81fe9f2149498b27de03e5ab5f281bb1ce5 /Source/cmTarget.cxx
parentef17bbefd7c504af65f2e6c52f5d7fa8e82d087e (diff)
downloadCMake-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.cxx7
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)));
}
//----------------------------------------------------------------------------