diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-29 09:45:26 -0500 |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-10-29 09:45:26 -0500 |
commit | ac2859aaa36ad25ff71da0a2dae54b84e6378897 (patch) | |
tree | 9cca99401309ebc76c7e5b378d7077856743e33d /Source/cmake.h | |
parent | 69dd3218ba0bcdbcf3869f229199df8cd545612f (diff) | |
download | cmake-ac2859aaa36ad25ff71da0a2dae54b84e6378897.tar.gz |
ENH: Start includding the scripting support
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index b3c4a45fa2..eca769448a 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; |