Bladeren bron

Merge topic 'doc-add_library-PIC'

4eaea3c add_library: Document POSITION_INDEPENDENT_CODE default (#13479)
David Cole 13 jaren geleden
bovenliggende
commit
a1b3c85030
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 3 1
      Source/cmAddLibraryCommand.h
  2. 1 1
      Source/cmTarget.cxx

+ 3 - 1
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 "

+ 1 - 1
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