summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentation.h
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/cmDocumentation.h
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/cmDocumentation.h')
-rw-r--r--Source/cmDocumentation.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmDocumentation.h b/Source/cmDocumentation.h
index 735d09c..6ce777e 100644
--- a/Source/cmDocumentation.h
+++ b/Source/cmDocumentation.h
@@ -96,6 +96,9 @@ public:
/** Clear all previously added sections of help. */
void ClearSections();
+
+ /** Set cmake root so we can find installed files */
+ void SetCMakeRoot(const char* root) { this->CMakeRoot = root;}
private:
void PrintSection(std::ostream& os,
const cmDocumentationEntry* section,
@@ -161,7 +164,7 @@ private:
std::string SeeAlsoString;
std::string SingleCommand;
std::string SingleModuleName;
-
+ std::string CMakeRoot;
std::vector< char* > ModuleStrings;
std::vector< const char* > Names;
std::vector< const cmDocumentationEntry* > Sections;