fix cmake find python

Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
zhoufeng 2021-06-30 17:04:19 +08:00
parent c8037bac0e
commit 608251e261
1 changed files with 1 additions and 0 deletions

View File

@ -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}")