summaryrefslogtreecommitdiff
path: root/Modules/FindPython2.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2019-03-14 18:40:22 +0100
committerMarc Chevrier <marc.chevrier@gmail.com>2019-03-14 18:53:57 +0100
commit9a84cb1663d834b529716f5a58ed9bbdfb7e43aa (patch)
tree864d22ba6787df748a3c48766e5c4ebf2fdf53ff /Modules/FindPython2.cmake
parentbf02d625325535f485512eba307cff54c08bb257 (diff)
downloadcmake-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/FindPython2.cmake')
-rw-r--r--Modules/FindPython2.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/FindPython2.cmake b/Modules/FindPython2.cmake
index 0bb7b28e58..b9c0b6b739 100644
--- a/Modules/FindPython2.cmake
+++ b/Modules/FindPython2.cmake
@@ -29,6 +29,13 @@ concurrently with :module:`FindPython3` module to use both Python versions.
The :module:`FindPython` module can be used if Python version does not matter
for you.
+.. 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
^^^^^^^^^^^^^^^^