summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-04-14 03:15:48 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-04-14 03:15:48 (GMT)
commit96a46bdb441226cdc89b1dd65cc65bf4ff771bac (patch)
tree0a399916d4707f65c4a69f7fbd2ebbd8736b9dbc /Source/cmakemain.cxx
parentac242e319bb4a7d6d31f83752687ceb3ea6890a8 (diff)
downloadCMake-96a46bdb441226cdc89b1dd65cc65bf4ff771bac.zip
CMake-96a46bdb441226cdc89b1dd65cc65bf4ff771bac.tar.gz
CMake-96a46bdb441226cdc89b1dd65cc65bf4ff771bac.tar.bz2
ENH: search for help modules in the correct place for install and source tree builds
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index a3bb75c..f607282 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -141,9 +141,11 @@ int do_cmake(int ac, char** av)
#ifdef CMAKE_BUILD_WITH_CMAKE
if(doc.CheckOptions(ac, av) || nocwd)
- {
+ {
// Construct and print requested documentation.
cmake hcm;
+ hcm.AddCMakePaths(av[0]);
+ doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT"));
std::vector<cmDocumentationEntry> commands;
std::vector<cmDocumentationEntry> generators;
hcm.GetCommandDocumentation(commands);