From 2badfcb7ffa7849af6fe40a19e37d1482c4c1283 Mon Sep 17 00:00:00 2001 From: zhouwei25 Date: Tue, 31 Aug 2021 06:18:09 +0000 Subject: [PATCH] fix bug that cmake find python --- 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 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()