diff options
author | David Cole <david.cole@kitware.com> | 2012-09-04 19:47:59 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-09-04 19:47:59 (GMT) |
commit | a1b3c850304af97e5a9ceca3c6df602d6aff7434 (patch) | |
tree | a3b54df1b124196c601530f02e4da386a0078bc5 | |
parent | d6643e9ae4fb2a3943246ce02a7b1de99dbc11e9 (diff) | |
parent | 4eaea3c358eba2550223d884d7b0523a91624237 (diff) | |
download | CMake-a1b3c850304af97e5a9ceca3c6df602d6aff7434.zip CMake-a1b3c850304af97e5a9ceca3c6df602d6aff7434.tar.gz CMake-a1b3c850304af97e5a9ceca3c6df602d6aff7434.tar.bz2 |
Merge topic 'doc-add_library-PIC'
4eaea3c add_library: Document POSITION_INDEPENDENT_CODE default (#13479)
-rw-r--r-- | Source/cmAddLibraryCommand.h | 4 | ||||
-rw-r--r-- | Source/cmTarget.cxx | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmAddLibraryCommand.h b/Source/cmAddLibraryCommand.h index b330e68..c144565 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 " diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index b0d4834..789713f 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -763,7 +763,7 @@ void cmTarget::DefineProperties(cmake *cm) "This property is true by default for SHARED and MODULE library " "targets and false otherwise. " "This property is initialized by the value of the variable " - "CMAKE_POSITION_INDEPENDENT_CODE if it is set when a target is" + "CMAKE_POSITION_INDEPENDENT_CODE if it is set when a target is " "created."); cm->DefineProperty |