summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-08-29 21:21:21 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-08-29 21:21:21 (GMT)
commit7aec024997f30aa766cf87a04be576fd3b77d802 (patch)
tree1812439693f5d66c0966356da87a72182a862d98 /Source/cmake.cxx
parent754e1cb9a5aadd27a21dda9bc410ee464e53afdc (diff)
downloadCMake-7aec024997f30aa766cf87a04be576fd3b77d802.zip
CMake-7aec024997f30aa766cf87a04be576fd3b77d802.tar.gz
CMake-7aec024997f30aa766cf87a04be576fd3b77d802.tar.bz2
opps
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5dbf630..c1c3128 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -132,10 +132,7 @@ void cmake::AddCMakePaths(const std::vector<std::string>& args)
// Find our own executable.
std::string cMakeSelf = args[0];
cmSystemTools::ConvertToUnixSlashes(cMakeSelf);
- if(!cmSystemTools::FileExists(cMakeSelf.c_str()))
- {
- cMakeSelf = cmSystemTools::FindProgram(cMakeSelf.c_str());
- }
+ cMakeSelf = cmSystemTools::FindProgram(cMakeSelf.c_str());
if(!cmSystemTools::FileExists(cMakeSelf.c_str()))
{
#ifdef CMAKE_BUILD_DIR