fixed quoted cmake
This commit is contained in:
parent
3bc0c4469c
commit
5d05b44844
@ -146,15 +146,12 @@ void cmake::SetArgs(cmMakefile& builder, int ac, char** av)
|
|||||||
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",
|
||||||
|
cmSystemTools::EscapeSpaces(cMakeSelf.c_str()).c_str(),
|
||||||
"Path to CMake executable.",
|
"Path to CMake executable.",
|
||||||
cmCacheManager::INTERNAL);
|
cmCacheManager::INTERNAL);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user