summaryrefslogtreecommitdiff
path: root/Source/cmAddLibraryCommand.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-08-31 07:32:01 -0400
committerBrad King <brad.king@kitware.com>2012-08-31 07:36:05 -0400
commit4eaea3c358eba2550223d884d7b0523a91624237 (patch)
tree3e7794435030dffa8af9c2860ff12e3aae7144f5 /Source/cmAddLibraryCommand.h
parent25b0d94678a99616d108ad9e93574b55f1d14e28 (diff)
downloadcmake-4eaea3c358eba2550223d884d7b0523a91624237.tar.gz
add_library: Document POSITION_INDEPENDENT_CODE default (#13479)
The POSITION_INDEPENDENT_CODE property documentation states that its default value depends on whether SHARED or MODULE is given to the add_library call. Since these are options to the add_library command we should document on the command how they affect the property. While at it, add a missing space to the POSITION_INDEPENDENT_CODE property documentation.
Diffstat (limited to 'Source/cmAddLibraryCommand.h')
-rw-r--r--Source/cmAddLibraryCommand.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmAddLibraryCommand.h b/Source/cmAddLibraryCommand.h
index b330e68c85..c14456535c 100644
--- a/Source/cmAddLibraryCommand.h
+++ b/Source/cmAddLibraryCommand.h
@@ -78,7 +78,9 @@ public:
"functionality. "
"If no type is given explicitly the type is STATIC or SHARED based "
"on whether the current value of the variable BUILD_SHARED_LIBS is "
- "true."
+ "true. "
+ "For SHARED and MODULE libraries the POSITION_INDEPENDENT_CODE "
+ "target property is set to TRUE automatically."
"\n"
"By default the library file will be created in the build tree "
"directory corresponding to the source tree directory in which "