diff options
| author | Brad King <brad.king@kitware.com> | 2020-03-06 14:17:39 (GMT) |
|---|---|---|
| committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-06 14:18:24 (GMT) |
| commit | 995b122471943461ca8bf6e89e894464fef5f05c (patch) | |
| tree | 4416dd5ddc47cec5dc66e3f311cb7a2a5625694e /Modules/FindPython.cmake | |
| parent | 74359da1e9965a11c00ada0c1822e59902cc8bd8 (diff) | |
| parent | e5b4c742385b7bcddb9b667cad37795b0aef3f32 (diff) | |
| download | CMake-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.cmake | 16 |
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 ^^^^^^^^ |
