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.
This commit is contained in:
Brad King 2012-08-31 07:32:01 -04:00
parent 25b0d94678
commit 4eaea3c358
2 changed files with 4 additions and 2 deletions

View File

@ -79,6 +79,8 @@ public:
"If no type is given explicitly the type is STATIC or SHARED based " "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 " "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" "\n"
"By default the library file will be created in the build tree " "By default the library file will be created in the build tree "
"directory corresponding to the source tree directory in which " "directory corresponding to the source tree directory in which "