summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cpack.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-13 22:56:50 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-13 22:56:50 (GMT)
commit9f61e2a235fc04e57237dc932aee61b264ef8916 (patch)
tree482f697639a0e55198f198eaf67282f088dee202 /Source/CPack/cpack.cxx
parentebc036bbdaa602c9276ad91469a305b42fda7cbc (diff)
downloadCMake-9f61e2a235fc04e57237dc932aee61b264ef8916.zip
CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.tar.gz
CMake-9f61e2a235fc04e57237dc932aee61b264ef8916.tar.bz2
ENH: Centralized and globalized computation of CMake program locations. This eliminates startup paths that failed to produce this information.
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r--Source/CPack/cpack.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 4da903e..b36e230 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -126,6 +126,7 @@ int cpackDefinitionArgument(const char* argument, const char* cValue,
// this is CPack.
int main (int argc, char *argv[])
{
+ cmSystemTools::FindExecutableDirectory(argv[0]);
cmCPackLog log;
log.SetErrorPrefix("CPack Error: ");
log.SetWarningPrefix("CPack Warning: ");
@@ -246,7 +247,7 @@ int main (int argc, char *argv[])
{
// find out which system cpack is running on, so it can setup the search
// paths, so FIND_XXX() commands can be used in scripts
- cminst.AddCMakePaths(argv[0]);
+ cminst.AddCMakePaths();
std::string systemFile =
globalMF->GetModulesFile("CMakeDetermineSystem.cmake");
if (!globalMF->ReadListFile(0, systemFile.c_str()))