diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-07-02 15:50:05 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-07-02 15:50:05 (GMT) |
commit | a91d662f46fd2781fc5a3b73c2d244ac6dc2a343 (patch) | |
tree | 07f0f8c48d755ec9676defc742bbaf64d348f5be /Source/cmake.h | |
parent | b976e70063008c0633cb5dd4ecb1f40278c67935 (diff) | |
download | CMake-a91d662f46fd2781fc5a3b73c2d244ac6dc2a343.zip CMake-a91d662f46fd2781fc5a3b73c2d244ac6dc2a343.tar.gz CMake-a91d662f46fd2781fc5a3b73c2d244ac6dc2a343.tar.bz2 |
Add find-package mode, which does nothing yet
-add command line argument --find-package and handle it,
i.e. call an empty function cmake::FindPackage()
-add basic help
Alex
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index fac86c1..7335813 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -282,6 +282,9 @@ class cmake void SetScriptMode(bool mode) { this->ScriptMode = mode; } bool GetScriptMode() { return this->ScriptMode; } + void SetFindPackageMode(bool mode) {this->FindPackageMode = mode; } + bool GetFindPackageMode() {return this->FindPackageMode;} + ///! Debug the try compile stuff by not delelting the files bool GetDebugTryCompile(){return this->DebugTryCompile;} void DebugTryCompileOn(){this->DebugTryCompile = true;} @@ -407,6 +410,7 @@ protected: ///! read in a cmake list file to initialize the cache void ReadListFile(const std::vector<std::string>& args, const char *path); + bool FindPackage(const std::vector<std::string>& args); ///! Check if CMAKE_CACHEFILE_DIR is set. If it is not, delete the log file. /// If it is set, truncate it to 50kb @@ -461,6 +465,7 @@ private: bool Verbose; bool InTryCompile; bool ScriptMode; + bool FindPackageMode; bool DebugOutput; bool Trace; bool WarnUninitialized; |