diff --git a/cmake/external/python.cmake b/cmake/external/python.cmake index 4828d9ae9083f..ab3776084136e 100644 --- a/cmake/external/python.cmake +++ b/cmake/external/python.cmake @@ -27,7 +27,7 @@ print(s.get_config_var('LDVERSION') or s.get_config_var('VERSION')); OUTPUT_VARIABLE _PYTHON_VALUES ERROR_VARIABLE _PYTHON_ERROR_VALUE) - if(NOT _PYTHON_SUCCESS MATCHES 0) + if(NOT _PYTHON_SUCCESS EQUAL 0) set(PYTHONLIBS_FOUND FALSE) return() endif()