Fix conditions for python when cmake debug prefix is not empty (#12601)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#
|
||||
|
||||
if(ENABLE_CPPLINT)
|
||||
find_package(PythonInterp 3 QUIET)
|
||||
find_host_package(PythonInterp 3 QUIET)
|
||||
|
||||
if(NOT PYTHONINTERP_FOUND)
|
||||
message(WARNING "Python3 interpreter was not found (required for cpplint check)")
|
||||
|
||||
@@ -11,7 +11,7 @@ set(ncc_style_bin_dir "${CMAKE_CURRENT_BINARY_DIR}/ncc_naming_style")
|
||||
|
||||
# find python3
|
||||
|
||||
find_package(PythonInterp 3 QUIET)
|
||||
find_host_package(PythonInterp 3 QUIET)
|
||||
if(NOT PYTHONINTERP_FOUND)
|
||||
message(WARNING "Python3 interpreter was not found (required for ncc naming style check)")
|
||||
set(ENABLE_NCC_STYLE OFF)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
# [MESSAGE_MODE <WARNING | FATAL_ERROR | TRACE>])
|
||||
#
|
||||
function(ov_check_pip_package)
|
||||
find_package(PythonInterp 3 QUIET)
|
||||
find_host_package(PythonInterp 3 QUIET)
|
||||
|
||||
set(oneValueOptionalArgs
|
||||
MESSAGE_MODE # Set the type of message: { FATAL_ERROR | WARNING | ... }
|
||||
@@ -65,7 +65,7 @@ endfunction()
|
||||
# [MESSAGE_MODE <WARNING | FATAL_ERROR | TRACE>])
|
||||
#
|
||||
function(ov_check_pip_packages)
|
||||
find_package(PythonInterp 3 QUIET)
|
||||
find_host_package(PythonInterp 3 QUIET)
|
||||
|
||||
set(oneValueOptionalArgs
|
||||
MESSAGE_MODE # Set the type of message: { FATAL_ERROR | WARNING | ... }
|
||||
|
||||
@@ -43,7 +43,7 @@ Usage: -DSELECTIVE_BUILD=ON -DSELECTIVE_BUILD_STAT=/path/*.csv" OFF
|
||||
|
||||
ie_option(ENABLE_ERROR_HIGHLIGHT "Highlight errors and warnings during compile time" OFF)
|
||||
|
||||
find_package(PythonInterp 3 QUIET)
|
||||
find_host_package(PythonInterp 3 QUIET)
|
||||
ie_dependent_option (ENABLE_DOCS "Build docs using Doxygen" OFF "PYTHONINTERP_FOUND" OFF)
|
||||
|
||||
#
|
||||
|
||||
@@ -88,7 +88,7 @@ ov_model_convert("${OpenVINO_SOURCE_DIR}/${rel_path}"
|
||||
|
||||
if(ENABLE_TESTS)
|
||||
if(ENABLE_OV_ONNX_FRONTEND AND ENABLE_REQUIREMENTS_INSTALL)
|
||||
find_package(PythonInterp 3 REQUIRED)
|
||||
find_host_package(PythonInterp 3 REQUIRED)
|
||||
|
||||
get_filename_component(PYTHON_EXEC_DIR ${PYTHON_EXECUTABLE} DIRECTORY)
|
||||
execute_process(COMMAND "${PYTHON_EXECUTABLE}" -m pip --version
|
||||
|
||||
Reference in New Issue
Block a user