diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-11 00:47:15 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-12-11 00:47:15 (GMT) |
commit | afc33a19909a5db044d19d86a0e8019e29ec5f97 (patch) | |
tree | 8163bd741f40649bedd4a833867e7670e30b7599 /Source/cmake.cxx | |
parent | 5acab1eed1df8508814cb2cafefe9935f7f0f940 (diff) | |
download | CMake-afc33a19909a5db044d19d86a0e8019e29ec5f97.zip CMake-afc33a19909a5db044d19d86a0e8019e29ec5f97.tar.gz CMake-afc33a19909a5db044d19d86a0e8019e29ec5f97.tar.bz2 |
ENH: Argument for script mode is -P (process) and take out the automatic script mode
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 133d71d..b1e2eea 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -215,9 +215,9 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args) std::cerr << "loading initial cache file " << path.c_str() << "\n"; this->ReadListFile(path.c_str()); } - else if(arg.find("--script",0) == 0) + else if(arg.find("-P",0) == 0) { - std::string path = arg.substr(strlen("--script")); + std::string path = arg.substr(strlen("-P")); if ( path.size() == 0 ) { cmSystemTools::Error("No cmake scrpt provided."); |