diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-04-14 12:11:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-04-14 15:03:35 (GMT) |
commit | 894fdea2a91c4d93e09f0dcecfa991670bc8492a (patch) | |
tree | 7961738b3fd5788eb3d2c71b4a5f081cb5c74e55 /Modules/FindPython | |
parent | 0b9c9e2c8c93af67c34d0bde954fa0a61081929b (diff) | |
download | CMake-894fdea2a91c4d93e09f0dcecfa991670bc8492a.zip CMake-894fdea2a91c4d93e09f0dcecfa991670bc8492a.tar.gz CMake-894fdea2a91c4d93e09f0dcecfa991670bc8492a.tar.bz2 |
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.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindPython/Support.cmake b/Modules/FindPython/Support.cmake index a462dd1..0581145 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() |