Avoid global targets in thirdparty dependencies (#17755)
* Added dependencies via vcpkg * Try to remove global imported targets * Fix for conan * Fixed RHEL case * Fixed RHEL, U18 cases * Returned OpenCV finding * Update cmake/templates/OpenVINOConfig.cmake.in Fixed IMPORTED_GLOBAL => GLOBAL in OpenVINOConfig.cmake.in template file * Apply suggestions from code review Properply used NAMES in find_package * Fixed case with zlib * Final fixes * Fixes * Removed CONFIG from find package ZLIB * Fixed RHEL * Reverted changes with gflags back * Turn off LTO after thirdparty dependencies are built
This commit is contained in:
@@ -64,8 +64,7 @@ function(ov_check_python_build_conditions)
|
||||
endif()
|
||||
# use libraries with the same version as python itself
|
||||
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION_STRING})
|
||||
find_host_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} EXACT
|
||||
${find_package_mode})
|
||||
find_host_package(PythonLibsNew ${PYBIND11_PYTHON_VERSION} EXACT ${find_package_mode})
|
||||
set(PYTHONLIBSNEW_FOUND ${PYTHONLIBS_FOUND} PARENT_SCOPE)
|
||||
endfunction()
|
||||
# try to find python libraries
|
||||
|
||||
Reference in New Issue
Block a user