summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-01-17 10:14:38 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-01-18 12:47:23 (GMT)
commita42b700cc254e284892821dea06ac265744a0939 (patch)
treef821db3f66420437cb5f9132bc8dbe60594f6df6 /Source/cmTarget.h
parenta61c061b6143cb6d8920b1b5796a867c0f104556 (diff)
downloadCMake-a42b700cc254e284892821dea06ac265744a0939.zip
CMake-a42b700cc254e284892821dea06ac265744a0939.tar.gz
CMake-a42b700cc254e284892821dea06ac265744a0939.tar.bz2
cmTarget,cmGeneratorTarget: Add optional `before` parameter to AddSource
The new optional `before` parameter in `cmTarget::AddSource` and `cmGeneratorTarget::AddSource` allows to prepend a source file to the sources list instead of appending it.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 655cefd..24b3742 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -123,7 +123,7 @@ public:
void AddSources(std::vector<std::string> const& srcs);
void AddTracedSources(std::vector<std::string> const& srcs);
cmSourceFile* AddSourceCMP0049(const std::string& src);
- cmSourceFile* AddSource(const std::string& src);
+ cmSourceFile* AddSource(const std::string& src, bool before = false);
//* how we identify a library, by name and type
typedef std::pair<std::string, cmTargetLinkLibraryType> LibraryID;