summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-10-29 14:45:26 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-10-29 14:45:26 (GMT)
commitac2859aaa36ad25ff71da0a2dae54b84e6378897 (patch)
tree9cca99401309ebc76c7e5b378d7077856743e33d /Source/cmake.h
parent69dd3218ba0bcdbcf3869f229199df8cd545612f (diff)
downloadCMake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.zip
CMake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.tar.gz
CMake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.tar.bz2
ENH: Start includding the scripting support
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index b3c4a45..eca7694 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -219,7 +219,7 @@ class cmake
void SetIsInTryCompile(bool i) { m_InTryCompile = i; }
///! Parse command line arguments that might set cache values
- void SetCacheArgs(const std::vector<std::string>&);
+ bool SetCacheArgs(const std::vector<std::string>&);
typedef void (*ProgressCallback)(const char*msg, float progress, void *);
/**
@@ -243,6 +243,14 @@ class cmake
///! Do all the checks before running configure
int DoPreConfigureChecks();
+
+ /**
+ * Set and get the script mode option. In script mode there is no generator
+ * and no cache. Also, language are not enabled, so add_executable and things
+ * do not do anything.
+ */
+ void SetScriptMode(bool mode) { m_ScriptMode = mode; }
+ bool GetScriptMode() { return m_ScriptMode; }
protected:
typedef cmGlobalGenerator* (*CreateGeneratorFunctionType)();
@@ -282,6 +290,7 @@ private:
bool m_Verbose;
bool m_Local;
bool m_InTryCompile;
+ bool m_ScriptMode;
std::string m_CMakeCommand;
const char* m_CXXEnvironment;
const char* m_CCEnvironment;