summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-03-03 23:18:47 (GMT)
committerBrad King <brad.king@kitware.com>2004-03-03 23:18:47 (GMT)
commit1dd718457fe1d410314d9443fa5d82462c5ae8ea (patch)
tree8b72677237a10327cdcde6dbedbe7b0191260b79 /Source/cmMakefile.h
parentbe45b5d20556ce5863fa0fc3a50b0a2b270a0a0f (diff)
downloadCMake-1dd718457fe1d410314d9443fa5d82462c5ae8ea.zip
CMake-1dd718457fe1d410314d9443fa5d82462c5ae8ea.tar.gz
CMake-1dd718457fe1d410314d9443fa5d82462c5ae8ea.tar.bz2
ENH: Moved variable and #cmakedefine replacement from cmConfigureFileCommand.cxx to a ConfigureString method on cmMakefile. This will give other commands access to the configuration code.
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 620691b..ffba58d 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -24,6 +24,8 @@
#include "cmListFileCache.h"
#include "cmCacheManager.h"
+#include <cmsys/RegularExpression.hxx>
+
class cmFunctionBlocker;
class cmCommand;
class cmLocalGenerator;
@@ -541,7 +543,14 @@ public:
*/
void ExpandVariables();
void ExpandVariablesInCustomCommands();
-
+
+ /**
+ * Replace variables and #cmakedefine lines in the given string.
+ * See cmConfigureFileCommand for details.
+ */
+ void ConfigureString(const std::string& input, std::string& output,
+ bool atOnly, bool escapeQuotes);
+
/**
* find what source group this source is in
*/
@@ -693,6 +702,8 @@ private:
// used in AddDefinition for performance improvement
DefinitionMap::key_type m_TemporaryDefinitionKey;
+
+ cmsys::RegularExpression m_cmDefineRegex;
};