summaryrefslogtreecommitdiffstats
path: root/Modules/FindPython
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-02-16 17:06:58 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-02-16 17:07:17 (GMT)
commitfc762735196dbbc983dfac2145cd7afd7892bf54 (patch)
treeb1cfe536786839d51582a6e3cd6c46e020c9d6ee /Modules/FindPython
parent234a6dffb8f8cbf349a4e5110dd5a083aaa22326 (diff)
parent754f4f6876f05b213b5ad2fc1a2e581bf529beb6 (diff)
downloadCMake-fc762735196dbbc983dfac2145cd7afd7892bf54.zip
CMake-fc762735196dbbc983dfac2145cd7afd7892bf54.tar.gz
CMake-fc762735196dbbc983dfac2145cd7afd7892bf54.tar.bz2
Merge topic 'FindPython-fix-variable-handling'
754f4f6876 FindPython: fix erroneous variable handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5816
Diffstat (limited to 'Modules/FindPython')
-rw-r--r--Modules/FindPython/Support.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index 0c775f7..8e70e11 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -1544,7 +1544,7 @@ if ("Interpreter" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS)
if (${_PYTHON_PREFIX}_FIND_VERSION_RANGE)
list (APPEND _${_PYTHON_PREFIX}_VALIDATE_OPTIONS IN_RANGE)
elseif (DEFINED ${_PYTHON_PREFIX}_FIND_VERSION)
- list (APPEND VERSION ${${_PYTHON_PREFIX}_FIND_VERSION})
+ list (APPEND _${_PYTHON_PREFIX}_VALIDATE_OPTIONS VERSION ${${_PYTHON_PREFIX}_FIND_VERSION})
endif()
while (TRUE)
@@ -2012,7 +2012,7 @@ if ("Compiler" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS)
if (${_PYTHON_PREFIX}_FIND_VERSION_RANGE)
list (APPEND _${_PYTHON_PREFIX}_VALIDATE_OPTIONS IN_RANGE)
elseif (DEFINED ${_PYTHON_PREFIX}_FIND_VERSION)
- list (APPEND VERSION ${${_PYTHON_PREFIX}_FIND_VERSION})
+ list (APPEND _${_PYTHON_PREFIX}_VALIDATE_OPTIONS VERSION ${${_PYTHON_PREFIX}_FIND_VERSION})
endif()
while (TRUE)