summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-02-02 21:09:55 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-02-02 21:15:07 (GMT)
commitdcd443d4aaf63c40e567a927b5be779f9be4b33e (patch)
treea2029d72690dfa0b7423b1e2fbb33cd425a33168 /Source/cmTarget.cxx
parentcd711ed0526de706c17c228e06f5010772cd217c (diff)
downloadCMake-dcd443d4aaf63c40e567a927b5be779f9be4b33e.zip
CMake-dcd443d4aaf63c40e567a927b5be779f9be4b33e.tar.gz
CMake-dcd443d4aaf63c40e567a927b5be779f9be4b33e.tar.bz2
cmTarget: Clean up the InsertCompileDefinition implementation.
It accepts a before parameter but is never called with before=true. compile definitions are sorted by std::set, so it wouldn't make sense to allow user sorting.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 21f8d4c..e51095e 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -1620,16 +1620,11 @@ void cmTarget::InsertCompileOption(const cmValueWithOrigin &entry,
}
//----------------------------------------------------------------------------
-void cmTarget::InsertCompileDefinition(const cmValueWithOrigin &entry,
- bool before)
+void cmTarget::InsertCompileDefinition(const cmValueWithOrigin &entry)
{
cmGeneratorExpression ge(entry.Backtrace);
- std::vector<cmTargetInternals::TargetPropertyEntry*>::iterator position
- = before ? this->Internal->CompileDefinitionsEntries.begin()
- : this->Internal->CompileDefinitionsEntries.end();
-
- this->Internal->CompileDefinitionsEntries.insert(position,
+ this->Internal->CompileDefinitionsEntries.push_back(
new cmTargetInternals::TargetPropertyEntry(ge.Parse(entry.Value)));
}