diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-09-11 18:42:50 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-09-11 18:42:50 (GMT) |
commit | 491a15c0c27ce817edebbb8e86e9f45aa36bc45c (patch) | |
tree | 96f1797891153f75773b37c243a8c0774c58bba3 /Source | |
parent | 0b9521daf73a4ed42ad184138de577ef678f43c8 (diff) | |
download | CMake-491a15c0c27ce817edebbb8e86e9f45aa36bc45c.zip CMake-491a15c0c27ce817edebbb8e86e9f45aa36bc45c.tar.gz CMake-491a15c0c27ce817edebbb8e86e9f45aa36bc45c.tar.bz2 |
bug in testing code
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmaketest.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index d2be7d2..eae3046 100644 --- a/Source/cmaketest.cxx +++ b/Source/cmaketest.cxx @@ -39,7 +39,11 @@ int main (int argc, char *argv[]) // use this program as the cmake to be run, it should not // be run that way but the cmake object requires a vailid path std::string cmakeCommand = CMAKE_COMMAND; - if(cmakeCommand[0] = '\"') + if(cmakeCommand[0] == '\\' && cmakeCommand[1] == '\"') + { + cmakeCommand = cmakeCommand.substr(2, cmakeCommand.size()-4); + } + if(cmakeCommand[0] == '\"') { cmakeCommand = cmakeCommand.substr(1, cmakeCommand.size()-2); } |