From 45b9a2d5750a7a0e6fa6041dd7eb928eae1b1f5f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 31 Jul 2008 13:36:53 -0400 Subject: [PATCH] BUG: fix for 7426 bad check for cpack --- Source/cmake.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 3a0a463d3..b89ce7ea7 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -857,7 +857,7 @@ int cmake::AddCMakePaths() } std::string cpackCommand = cmSystemTools::GetFilenamePath(cMakeSelf) + "/cpack" + cmSystemTools::GetFilenameExtension(cMakeSelf); - if(cmSystemTools::FileExists(ctestCommand.c_str())) + if(cmSystemTools::FileExists(cpackCommand.c_str())) { this->CacheManager->AddCacheEntry ("CMAKE_CPACK_COMMAND", cpackCommand.c_str(),