diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-02-16 10:07:51 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-16 15:46:28 (GMT) |
commit | 754f4f6876f05b213b5ad2fc1a2e581bf529beb6 (patch) | |
tree | c2eaac2b886f125d0ebace25b603d990a1c2c3ad /Modules/FindPython | |
parent | d5401de605af11ad3cd1c6faa64bf319af6b67c6 (diff) | |
download | CMake-754f4f6876f05b213b5ad2fc1a2e581bf529beb6.zip CMake-754f4f6876f05b213b5ad2fc1a2e581bf529beb6.tar.gz CMake-754f4f6876f05b213b5ad2fc1a2e581bf529beb6.tar.bz2 |
FindPython: fix erroneous variable handling
Fixes: #21817
Diffstat (limited to 'Modules/FindPython')
-rw-r--r-- | Modules/FindPython/Support.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index 79b1d18..8b2d739 100644 --- a/Modules/FindPython/Support.cmake +++ b/Modules/FindPython/Support.cmake @@ -1528,7 +1528,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) @@ -1996,7 +1996,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) |