summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-27 21:05:11 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-27 21:05:11 (GMT)
commit7dcfdf5005adf43a13c48a917066d8bc115d0d96 (patch)
tree628ce1ba15674f596b63b7dbf1477cc9c9bc2902 /Source/cmake.cxx
parent4f88f7e4deca19e5b3955c32c6d3f9f960a8ea01 (diff)
downloadCMake-7dcfdf5005adf43a13c48a917066d8bc115d0d96.zip
CMake-7dcfdf5005adf43a13c48a917066d8bc115d0d96.tar.gz
CMake-7dcfdf5005adf43a13c48a917066d8bc115d0d96.tar.bz2
BUG: fix install problem on make and allow symlinks to cmake bin directory
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 3b99a82..02e1770 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -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)
{