summaryrefslogtreecommitdiff
path: root/Modules/FindPython
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-04-14 08:11:44 -0400
committerBrad King <brad.king@kitware.com>2020-04-14 11:03:35 -0400
commit894fdea2a91c4d93e09f0dcecfa991670bc8492a (patch)
tree7961738b3fd5788eb3d2c71b4a5f081cb5c74e55 /Modules/FindPython
parent0b9c9e2c8c93af67c34d0bde954fa0a61081929b (diff)
downloadcmake-894fdea2a91c4d93e09f0dcecfa991670bc8492a.tar.gz
FindPython: remove extra dereference
If the version is not found (e.g., missing headers), this causes a CMake error about `if(blah VERSION_EQUAL)` being an invalid statement.
Diffstat (limited to 'Modules/FindPython')
-rw-r--r--Modules/FindPython/Support.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake
index a462dd1050..0581145e1b 100644
--- a/Modules/FindPython/Support.cmake
+++ b/Modules/FindPython/Support.cmake
@@ -2224,7 +2224,7 @@ if ("Development" IN_LIST ${_PYTHON_PREFIX}_FIND_COMPONENTS
_python_get_version (INCLUDE PREFIX _${_PYTHON_PREFIX}_INC_)
# update versioning
- if (_${_PYTHON_PREFIX}_INC_VERSION VERSION_EQUAL ${_${_PYTHON_PREFIX}_VERSION})
+ if (_${_PYTHON_PREFIX}_INC_VERSION VERSION_EQUAL _${_PYTHON_PREFIX}_VERSION)
set (_${_PYTHON_PREFIX}_VERSION_PATCH ${_${_PYTHON_PREFIX}_INC_VERSION_PATCH})
endif()
endif()