diff options
author | Brad King <brad.king@kitware.com> | 2007-12-13 22:56:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-12-13 22:56:50 (GMT) |
commit | 9f61e2a235fc04e57237dc932aee61b264ef8916 (patch) | |
tree | 482f697639a0e55198f198eaf67282f088dee202 /Source/cmakemain.cxx | |
parent | ebc036bbdaa602c9276ad91469a305b42fda7cbc (diff) | |
download | CMake-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/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index ebc547a..839c3f3 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -273,6 +273,7 @@ static void cmakemainProgressCallback(const char *m, float prog, int main(int ac, char** av) { cmSystemTools::EnableMSVCDebugHook(); + cmSystemTools::FindExecutableDirectory(av[0]); int ret = do_cmake(ac, av); #ifdef CMAKE_BUILD_WITH_CMAKE cmDynamicLoader::FlushCache(); @@ -299,7 +300,7 @@ int do_cmake(int ac, char** av) { // Construct and print requested documentation. cmake hcm; - hcm.AddCMakePaths(av[0]); + hcm.AddCMakePaths(); doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT")); // the command line args are processed here so that you can do |