Browse Source

FindPython: clarify static libraries hint usage

Fixes: #22956
Marc Chevrier 3 years ago
parent
commit
a35bf772de
3 changed files with 15 additions and 0 deletions
  1. 5 0
      Modules/FindPython.cmake
  2. 5 0
      Modules/FindPython2.cmake
  3. 5 0
      Modules/FindPython3.cmake

+ 5 - 0
Modules/FindPython.cmake

@@ -229,6 +229,11 @@ Hints
   * If set to TRUE, search **only** for static libraries.
   * If set to FALSE, search **only** for shared libraries.
 
+  .. note::
+
+    This hint will be ignored on ``Windows`` because static libraries are not
+    available on this platform.
+
 ``Python_FIND_ABI``
   .. versionadded:: 3.16
 

+ 5 - 0
Modules/FindPython2.cmake

@@ -215,6 +215,11 @@ Hints
   * If set to TRUE, search **only** for static libraries.
   * If set to FALSE, search **only** for shared libraries.
 
+  .. note::
+
+    This hint will be ignored on ``Windows`` because static libraries are not
+    available on this platform.
+
 ``Python2_FIND_STRATEGY``
   .. versionadded:: 3.15
 

+ 5 - 0
Modules/FindPython3.cmake

@@ -231,6 +231,11 @@ Hints
   * If set to TRUE, search **only** for static libraries.
   * If set to FALSE, search **only** for shared libraries.
 
+  .. note::
+
+    This hint will be ignored on ``Windows`` because static libraries are not
+    available on this platform.
+
 ``Python3_FIND_ABI``
   .. versionadded:: 3.16