Fix CMake error

This commit is contained in:
Carles Fernandez 2023-10-26 10:25:39 +02:00
parent 4416e20077
commit a46f9f77fe
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ else()
endif()
endif()
if(${PYTHON_VERSION_MAJOR} VERSION_EQUAL 3)
if("${PYTHON_VERSION_MAJOR}" VERSION_EQUAL 3)
set(PYTHON3 TRUE)
endif()

View File

@ -170,7 +170,7 @@ else()
endif()
endif()
if(${PYTHON_VERSION_MAJOR} VERSION_EQUAL 3)
if("${PYTHON_VERSION_MAJOR}" VERSION_EQUAL 3)
set(PYTHON3 TRUE)
endif()