diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2010-07-12 19:48:51 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:08:14 (GMT) |
commit | f794d589a44918c905911eb7688d69350922c6b3 (patch) | |
tree | c5893a8eff5b26496740c5e4b77e47ca73268c8b /Source/cmake.cxx | |
parent | 48b5b855934be341c02139c0bed88c35c1b40d8f (diff) | |
download | CMake-f794d589a44918c905911eb7688d69350922c6b3.zip CMake-f794d589a44918c905911eb7688d69350922c6b3.tar.gz CMake-f794d589a44918c905911eb7688d69350922c6b3.tar.bz2 |
Make --strict-mode option, and integrate with cmake-gui
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 0f9ef1b..2e77748 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -140,6 +140,7 @@ void cmNeedBackwardsCompatibility(const std::string& variable, cmake::cmake() { this->Trace = false; + this->StrictMode = false; this->SuppressDevWarnings = false; this->DoSuppressDevWarnings = false; this->DebugOutput = false; @@ -613,6 +614,11 @@ void cmake::SetArgs(const std::vector<std::string>& args) std::cout << "Running with trace output on.\n"; this->SetTrace(true); } + else if(arg.find("--strict-mode",0) == 0) + { + std::cout << "Running in strict mode.\n"; + this->SetStrictMode(true); + } else if(arg.find("-G",0) == 0) { std::string value = arg.substr(2); |