diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2019-03-14 18:40:22 +0100 |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2019-03-14 18:53:57 +0100 |
commit | 9a84cb1663d834b529716f5a58ed9bbdfb7e43aa (patch) | |
tree | 864d22ba6787df748a3c48766e5c4ebf2fdf53ff /Modules/FindPython.cmake | |
parent | bf02d625325535f485512eba307cff54c08bb257 (diff) | |
download | cmake-9a84cb1663d834b529716f5a58ed9bbdfb7e43aa.tar.gz |
FindPython*: ensure correct architecture is selected.
Ensure interpreter and libraries architecture matches CMake build
configuration.
Update documentation about interpreter constraints.
Fixes: #19024
Diffstat (limited to 'Modules/FindPython.cmake')
-rw-r--r-- | Modules/FindPython.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindPython.cmake b/Modules/FindPython.cmake index f014916b29..1c134e278b 100644 --- a/Modules/FindPython.cmake +++ b/Modules/FindPython.cmake @@ -28,6 +28,13 @@ is searched. To manage concurrent versions 3 and 2 of Python, use :module:`FindPython3` and :module:`FindPython2` modules rather than this one. +.. note:: + + If components ``Interpreter`` and ``Development`` are both specified, this + module search only for interpreter with same platform architecture as the one + defined by ``CMake`` configuration. This contraint does not apply if only + ``Interpreter`` component is specified. + Imported Targets ^^^^^^^^^^^^^^^^ |