summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-06 14:17:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-06 14:18:24 (GMT)
commit995b122471943461ca8bf6e89e894464fef5f05c (patch)
tree4416dd5ddc47cec5dc66e3f311cb7a2a5625694e /Modules/FindPython.cmake
parent74359da1e9965a11c00ada0c1822e59902cc8bd8 (diff)
parente5b4c742385b7bcddb9b667cad37795b0aef3f32 (diff)
downloadCMake-995b122471943461ca8bf6e89e894464fef5f05c.zip
CMake-995b122471943461ca8bf6e89e894464fef5f05c.tar.gz
CMake-995b122471943461ca8bf6e89e894464fef5f05c.tar.bz2
Merge topic 'FindPython-artifacts-scope'
e5b4c74238 FindPython: Add possibility to control scope of artifacts. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4426
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r--Modules/FindPython.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake
index 9dfa222..6132693 100644
--- a/Modules/FindPython.cmake
+++ b/Modules/FindPython.cmake
@@ -288,6 +288,22 @@ setting the following variables:
If more than one artifact is specified, it is the user's responsability to
ensure the consistency of the various artifacts.
+By default, this module supports multiple calls in different directories of a
+project with different version/component requirements while providing correct
+and consistent results for each call. To support this behavior, ``CMake`` cache
+is not used in the traditional way which can be problematic for interactive
+specification. So, to enable also interactive specification, module behavior
+can be controled with the following variable:
+
+``Python_ARTIFACTS_INTERACTIVE``
+ Selects the behavior of the module. This is a boolean variable:
+
+ * If set to ``TRUE``: Create CMake cache entries for the above artifact
+ specification variables so that users can edit them interactively.
+ This disables support for multiple version/component requirements.
+ * If set to ``FALSE`` or undefined: Enable multiple version/component
+ requirements.
+
Commands
^^^^^^^^