summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-04-04 15:45:28 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-04-06 08:02:34 (GMT)
commiteb163f37d449af27fe8446c5d8d632aa295b6428 (patch)
tree2d66790f6c74daa60365ebcdf0b2eb8adc877aa4 /Source/cmTarget.h
parent19b7c22d020a3b1bf26065beb33b0f2f499cd1ad (diff)
downloadCMake-eb163f37d449af27fe8446c5d8d632aa295b6428.zip
CMake-eb163f37d449af27fe8446c5d8d632aa295b6428.tar.gz
CMake-eb163f37d449af27fe8446c5d8d632aa295b6428.tar.bz2
cmTarget: Extract a ProcessSourceItemCMP0049 method.
Avoid calling AddSource for each src filename. That involves checking each entry for uniqueness and creating a separate generator expression for each one. Instead, add a single entry for the list of sources. The source files are passed through a uniqueness filter at generate-time, so duplicates don't matter so much.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index da032a5..a8ac57f 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -752,6 +752,8 @@ private:
void ComputeLinkClosure(const std::string& config, LinkClosure& lc,
cmTarget const* head) const;
+ std::string ProcessSourceItemCMP0049(const std::string& s);
+
void ClearLinkMaps();
void MaybeInvalidatePropertyCache(const std::string& prop);