فهرست منبع

Help: Clarify documentation of CMAKE_STATIC_LINKER_FLAGS

Issue: #19838
Brad King 6 سال پیش
والد
کامیت
fb16e0e7c0
2فایلهای تغییر یافته به همراه17 افزوده شده و 5 حذف شده
  1. 8 2
      Help/variable/CMAKE_STATIC_LINKER_FLAGS.rst
  2. 9 3
      Help/variable/CMAKE_STATIC_LINKER_FLAGS_CONFIG.rst

+ 8 - 2
Help/variable/CMAKE_STATIC_LINKER_FLAGS.rst

@@ -1,6 +1,12 @@
 CMAKE_STATIC_LINKER_FLAGS
 -------------------------
 
-Linker flags to be used to create static libraries.
+Flags to be used to create static libraries.  These flags will be passed
+to the archiver when creating a static library.
 
-These flags will be used by the linker when creating a static library.
+See also :variable:`CMAKE_STATIC_LINKER_FLAGS_<CONFIG>`.
+
+.. note::
+  Static libraries do not actually link.  They are essentially archives
+  of object files.  The use of the name "linker" in the name of this
+  variable is kept for compatibility.

+ 9 - 3
Help/variable/CMAKE_STATIC_LINKER_FLAGS_CONFIG.rst

@@ -1,7 +1,13 @@
 CMAKE_STATIC_LINKER_FLAGS_<CONFIG>
 ----------------------------------
 
-Flags to be used when linking a static library.
+Flags to be used to create static libraries.  These flags will be passed
+to the archiver when creating a static library in the ``<CONFIG>``
+configuration.
 
-Same as ``CMAKE_C_FLAGS_*`` but used by the linker when creating static
-libraries.
+See also :variable:`CMAKE_STATIC_LINKER_FLAGS`.
+
+.. note::
+  Static libraries do not actually link.  They are essentially archives
+  of object files.  The use of the name "linker" in the name of this
+  variable is kept for compatibility.