diff options
author | Brad King <brad.king@kitware.com> | 2006-10-02 15:14:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-02 15:14:00 (GMT) |
commit | 1d9f287af758b4a9cf8c35463ce98af1169cccf6 (patch) | |
tree | 6b437cb7c5e9de4ae2ea2d7c357095a2026b0e9a /Source/cmAddLibraryCommand.h | |
parent | 603b47c87a6b7bbf99dfd13e4b874ee51e528434 (diff) | |
download | CMake-1d9f287af758b4a9cf8c35463ce98af1169cccf6.zip CMake-1d9f287af758b4a9cf8c35463ce98af1169cccf6.tar.gz CMake-1d9f287af758b4a9cf8c35463ce98af1169cccf6.tar.bz2 |
ENH: Added NOT_IN_ALL option for ADD_LIBRARY and ADD_EXECUTABLE to avoid building the targets by default.
Diffstat (limited to 'Source/cmAddLibraryCommand.h')
-rw-r--r-- | Source/cmAddLibraryCommand.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmAddLibraryCommand.h b/Source/cmAddLibraryCommand.h index 86a9eb9..adb6246 100644 --- a/Source/cmAddLibraryCommand.h +++ b/Source/cmAddLibraryCommand.h @@ -61,7 +61,7 @@ public: virtual const char* GetFullDocumentation() { return - " ADD_LIBRARY(libname [SHARED | STATIC | MODULE]\n" + " ADD_LIBRARY(libname [SHARED | STATIC | MODULE] [NOT_IN_ALL]\n" " source1 source2 ... sourceN)\n" "Adds a library target. SHARED, STATIC or MODULE keywords are used " "to set the library type. If the keyword MODULE appears, the library " @@ -69,7 +69,10 @@ public: "without dyld, MODULE is treated like SHARED. If no keywords appear " " as the second argument, the type defaults to the current value of " "BUILD_SHARED_LIBS. If this variable is not set, the type defaults " - "to STATIC."; + "to STATIC.\n" + "If NOT_IN_ALL is given the target will not be built by default. " + "It will be built only if the user explicitly builds the target or " + "another target that requires the target depends on it."; } cmTypeMacro(cmAddLibraryCommand, cmCommand); |