summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-09-07 09:42:29 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-09-09 07:44:55 (GMT)
commit3e8b3e94dc6d3ea59dd437f1ea46786f9f0ec1d2 (patch)
treebe9993d25925036d0dc5a86f8b4b634beba83319 /Source/cmMakefile.h
parente18ab9c4b2fc3b11a1e246b1418d25382a853bfb (diff)
downloadCMake-3e8b3e94dc6d3ea59dd437f1ea46786f9f0ec1d2.zip
CMake-3e8b3e94dc6d3ea59dd437f1ea46786f9f0ec1d2.tar.gz
CMake-3e8b3e94dc6d3ea59dd437f1ea46786f9f0ec1d2.tar.bz2
cmMakefile: Collect source group methods in one place
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h41
1 files changed, 18 insertions, 23 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 938b61b..31ae229 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -270,21 +270,6 @@ public:
bool excludeFromAll = false);
void AddAlias(const std::string& libname, const std::string& tgt);
-#if defined(CMAKE_BUILD_WITH_CMAKE)
- /**
- * Add a root source group for consideration when adding a new source.
- */
- void AddSourceGroup(const std::string& name, const char* regex = nullptr);
-
- /**
- * Add a source group for consideration when adding a new source.
- * name is tokenized.
- */
- void AddSourceGroup(const std::vector<std::string>& name,
- const char* regex = nullptr);
-
-#endif
-
//@{
/**
* Set, Push, Pop policy values for CMake.
@@ -476,6 +461,24 @@ public:
* Get the source group
*/
cmSourceGroup* GetSourceGroup(const std::vector<std::string>& name) const;
+
+ /**
+ * Add a root source group for consideration when adding a new source.
+ */
+ void AddSourceGroup(const std::string& name, const char* regex = nullptr);
+
+ /**
+ * Add a source group for consideration when adding a new source.
+ * name is tokenized.
+ */
+ void AddSourceGroup(const std::vector<std::string>& name,
+ const char* regex = nullptr);
+
+ /**
+ * find what source group this source is in
+ */
+ cmSourceGroup* FindSourceGroup(const char* source,
+ std::vector<cmSourceGroup>& groups) const;
#endif
/**
@@ -552,14 +555,6 @@ public:
bool atOnly, bool escapeQuotes,
cmNewLineStyle = cmNewLineStyle());
-#if defined(CMAKE_BUILD_WITH_CMAKE)
- /**
- * find what source group this source is in
- */
- cmSourceGroup* FindSourceGroup(const char* source,
- std::vector<cmSourceGroup>& groups) const;
-#endif
-
/**
* Print a command's invocation
*/