summaryrefslogtreecommitdiff
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-20 14:46:33 -0500
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-02-20 14:46:33 -0500
commit51516613e83f15c31156ad0a503f270c746266e1 (patch)
tree788642df935ae161fd40761bdbb4c11e0d800e6e /Source/cmake.cxx
parent413a595d372253ac770496e5ebb9012991705745 (diff)
downloadcmake-51516613e83f15c31156ad0a503f270c746266e1.tar.gz
ENH: Ok, when doing cmake -P you should not have to squish filename next to -P, There should be space between
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index c1c26989d5..9c4f7d9134 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -217,7 +217,8 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args)
}
else if(arg.find("-P",0) == 0)
{
- std::string path = arg.substr(strlen("-P"));
+ i++;
+ std::string path = args[i];
if ( path.size() == 0 )
{
cmSystemTools::Error("No cmake scrpt provided.");