diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-03-02 16:45:25 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-03-05 15:44:48 (GMT) |
commit | e5b4c742385b7bcddb9b667cad37795b0aef3f32 (patch) | |
tree | e4f12be194969b1d0a66be736082929b763fc1a2 /Modules/FindPython3.cmake | |
parent | 07a7bc0e3fc370eaa5593cffcd07c0ea739cfc9c (diff) | |
download | CMake-e5b4c742385b7bcddb9b667cad37795b0aef3f32.zip CMake-e5b4c742385b7bcddb9b667cad37795b0aef3f32.tar.gz CMake-e5b4c742385b7bcddb9b667cad37795b0aef3f32.tar.bz2 |
FindPython: Add possibility to control scope of artifacts.
Fixes: #20362
Diffstat (limited to 'Modules/FindPython3.cmake')
-rw-r--r-- | Modules/FindPython3.cmake | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Modules/FindPython3.cmake b/Modules/FindPython3.cmake index 66f4f75..211f982 100644 --- a/Modules/FindPython3.cmake +++ b/Modules/FindPython3.cmake @@ -285,6 +285,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: + +``Python3_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 ^^^^^^^^ |