diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-28 18:29:29 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-03-28 18:29:29 (GMT) |
commit | cae34d2df3e3478db69ef1c99ddd649673f64007 (patch) | |
tree | 3c4b4440c52d983e245db99992668fbaa1a03c0d /Source/cmake.cxx | |
parent | e40fe909a62df9e073aa597646e048e7b7aa3a37 (diff) | |
download | CMake-cae34d2df3e3478db69ef1c99ddd649673f64007.zip CMake-cae34d2df3e3478db69ef1c99ddd649673f64007.tar.gz CMake-cae34d2df3e3478db69ef1c99ddd649673f64007.tar.bz2 |
ENH: try to fix mac symlinks to the executable
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 4 |
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) { |