From 608251e2619f05ea7264514150c4a547c39e8838 Mon Sep 17 00:00:00 2001 From: zhoufeng Date: Wed, 30 Jun 2021 17:04:19 +0800 Subject: [PATCH] fix cmake find python Signed-off-by: zhoufeng --- cmake/check_requirements.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/check_requirements.cmake b/cmake/check_requirements.cmake index 075e1abe7a5..37663b6406b 100644 --- a/cmake/check_requirements.cmake +++ b/cmake/check_requirements.cmake @@ -18,6 +18,7 @@ endfunction() ## find python, quit if the found python is static set(Python3_USE_STATIC_LIBS FALSE) +set(Python3_FIND_VIRTUALENV ONLY) find_package(Python3 COMPONENTS Interpreter Development) if(Python3_FOUND) message("Python3 found, version: ${Python3_VERSION}")