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:
Ilya Lavrenov
2023-05-27 10:47:41 +04:00
committed by GitHub
parent b0b540aeaf
commit 6a562268d3
11 changed files with 155 additions and 150 deletions

View File

@@ -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