summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 02e1770..88aed1d 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -858,8 +858,8 @@ int cmake::AddCMakePaths()
if(!cmSystemTools::FileExists(modules.c_str()))
{
// next try exe/..
- cMakeRoot = cmSystemTools::GetProgramPath(cMakeSelf.c_str());
- cMakeRoot = cmSystemTools::GetRealPath(cMakeRoot.c_str());
+ cMakeRoot = cmSystemTools::GetRealPath(cMakeSelf.c_str());
+ cMakeRoot = cmSystemTools::GetProgramPath(cMakeRoot.c_str());
std::string::size_type slashPos = cMakeRoot.rfind("/");
if(slashPos != std::string::npos)
{