diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-28 13:09:26 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-28 13:09:26 (GMT) |
commit | 43de8c862868be38ce5ffe91edf09898ef8478cf (patch) | |
tree | 90a54e2fc57511c61b271a9bd6e01f6b4096d35a /Source/cmEnableLanguageCommand.h | |
parent | 53f39ad566ec7b9b3c118164d5330c0d17dd18c1 (diff) | |
download | CMake-43de8c862868be38ce5ffe91edf09898ef8478cf.zip CMake-43de8c862868be38ce5ffe91edf09898ef8478cf.tar.gz CMake-43de8c862868be38ce5ffe91edf09898ef8478cf.tar.bz2 |
ENH: add OPTIONAL keyword to ENABLE_LANGUAGE, so it will be possible to do
something like this:
ENABLE_LANGUAGE(ASM-ATT)
IF(CMAKE_ASM-ATT_COMPILER_WORKS)
... do assembler stufff
ELSE(CMAKE_ASM-ATT_COMPILER_WORKS)
... fallback to generic C/C++
ENDIF(CMAKE_ASM-ATT_COMPILER_WORKS)
Alex
Diffstat (limited to 'Source/cmEnableLanguageCommand.h')
-rw-r--r-- | Source/cmEnableLanguageCommand.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmEnableLanguageCommand.h b/Source/cmEnableLanguageCommand.h index decb788..c1c99d1 100644 --- a/Source/cmEnableLanguageCommand.h +++ b/Source/cmEnableLanguageCommand.h @@ -63,11 +63,13 @@ public: virtual const char* GetFullDocumentation() { return - " ENABLE_LANGUAGE(languageName)\n" + " ENABLE_LANGUAGE(languageName [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 varaibles that are created by the project command. " - "Example languages are CXX, C, Fortran."; + "Example languages are CXX, C, Fortran.\n" + "If OPTIONAL is used, use the CMAKE_<languageName>_COMPILER_WORKS " + "variable to check whether the language has been enabled successfully."; } cmTypeMacro(cmEnableLanguageCommand, cmCommand); |