From 00c9aeb06863e944f949a9aa989554da6fa54c52 Mon Sep 17 00:00:00 2001 From: Zhou Wei <1183042833@qq.com> Date: Tue, 31 Aug 2021 18:39:41 +0800 Subject: [PATCH] fix bug that cmake find python (#35304) --- cmake/external/python.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/external/python.cmake b/cmake/external/python.cmake index 4828d9ae90..ab37760841 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() -- GitLab