diff options
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index d4dee28..32c7797 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2107,6 +2107,8 @@ void cmSystemTools::FindExecutableDirectory(const char* argv0) std::string exe; if(cmSystemTools::FindProgramPath(argv0, exe, errorMsg)) { + // remove symlinks + exe = cmSystemTools::GetRealPath(exe.c_str()); cmSystemToolsExecutableDirectory = cmSystemTools::GetFilenamePath(exe.c_str()); } |