summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-14 13:01:39 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-14 13:01:39 (GMT)
commitdea8271840b69bef078d7af324a72636ff195c94 (patch)
treec68c2a98ebe869cef025cf6fde7357d1d044ab7d
parentd556631079c8c54eb1a569b5b702412170ceee94 (diff)
parentb3b57e7a31446bf7b0e47c7508d34f34cb322a6a (diff)
downloadCMake-dea8271840b69bef078d7af324a72636ff195c94.zip
CMake-dea8271840b69bef078d7af324a72636ff195c94.tar.gz
CMake-dea8271840b69bef078d7af324a72636ff195c94.tar.bz2
Merge topic 'doc-enable_language-scope'
b3b57e7 enable_language: Clarify documentation
-rw-r--r--Source/cmEnableLanguageCommand.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/Source/cmEnableLanguageCommand.h b/Source/cmEnableLanguageCommand.h
index ee963f9..747448b 100644
--- a/Source/cmEnableLanguageCommand.h
+++ b/Source/cmEnableLanguageCommand.h
@@ -59,18 +59,21 @@ public:
virtual const char* GetFullDocumentation() const
{
return
- " enable_language(languageName [OPTIONAL] )\n"
+ " enable_language(<lang> [OPTIONAL] )\n"
"This command enables support for the named language in CMake. "
"This is the same as the project command but does not create "
"any of the extra variables that are created by the project command. "
"Example languages are CXX, C, Fortran. "
- "If OPTIONAL is used, use the CMAKE_<languageName>_COMPILER_WORKS "
- "variable to check whether the language has been enabled successfully."
"\n"
- "This command must be called on file scope (not inside a function) and "
- "the language enabled can only be used in the calling project or its "
- "subdirectories added by add_subdirectory(). Also note that at present, "
- "the OPTIONAL argument does not work.";
+ "This command must be called in file scope, not in a function call. "
+ "Furthermore, it must be called in the highest directory common to "
+ "all targets using the named language directly for compiling sources "
+ "or indirectly through link dependencies. "
+ "It is simplest to enable all needed languages in the top-level "
+ "directory of a project."
+ "\n"
+ "The OPTIONAL keyword is a placeholder for future implementation "
+ "and does not currently work.";
}
cmTypeMacro(cmEnableLanguageCommand, cmCommand);