fixed quoted cmake

This commit is contained in:
Ken Martin 2001-05-23 15:49:18 -04:00
parent 3bc0c4469c
commit 5d05b44844
1 changed files with 6 additions and 9 deletions

View File

@ -145,18 +145,15 @@ void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
// at the end of this CMAKE_ROOT and CMAAKE_COMMAND should be added to the cache // at the end of this CMAKE_ROOT and CMAAKE_COMMAND should be added to the cache
void cmake::AddCMakePaths(char **av) void cmake::AddCMakePaths(char **av)
{ {
// Find our own exectuable. // Find our own exectuable.
#if defined(_WIN32) && !defined(__CYGWIN__)
std::string cMakeSelf = "\""+cmSystemTools::FindProgram(av[0])+"\"";
#else
std::string cMakeSelf = cmSystemTools::FindProgram(av[0]); std::string cMakeSelf = cmSystemTools::FindProgram(av[0]);
#endif
// Save the value in the cache // Save the value in the cache
cmCacheManager::GetInstance()->AddCacheEntry("CMAKE_COMMAND", cmCacheManager::GetInstance()->AddCacheEntry
cMakeSelf.c_str(), ("CMAKE_COMMAND",
"Path to CMake executable.", cmSystemTools::EscapeSpaces(cMakeSelf.c_str()).c_str(),
cmCacheManager::INTERNAL); "Path to CMake executable.",
cmCacheManager::INTERNAL);
// do CMAKE_ROOT, look for the environment variable first // do CMAKE_ROOT, look for the environment variable first
std::string cMakeRoot; std::string cMakeRoot;