|
|
@@ -783,6 +783,7 @@ int cmake::AddCMakePaths()
|
|
|
{
|
|
|
// Find the cmake executable
|
|
|
std::string cMakeSelf = cmSystemTools::GetExecutableDirectory();
|
|
|
+ cMakeSelf = cmSystemTools::GetRealPath(cMakeSelf.c_str());
|
|
|
cMakeSelf += "/cmake";
|
|
|
cMakeSelf += cmSystemTools::GetExecutableExtension();
|
|
|
if(!cmSystemTools::FileExists(cMakeSelf.c_str()))
|
|
|
@@ -858,6 +859,7 @@ int cmake::AddCMakePaths()
|
|
|
{
|
|
|
// next try exe/..
|
|
|
cMakeRoot = cmSystemTools::GetProgramPath(cMakeSelf.c_str());
|
|
|
+ cMakeRoot = cmSystemTools::GetRealPath(cMakeRoot.c_str());
|
|
|
std::string::size_type slashPos = cMakeRoot.rfind("/");
|
|
|
if(slashPos != std::string::npos)
|
|
|
{
|