Use static TBBBind if dynamic one is not found (#12703)

This commit is contained in:
Ilya Lavrenov
2022-08-23 13:17:35 +04:00
committed by GitHub
parent 7a7bd37a50
commit 2ef6e2951c
5 changed files with 54 additions and 4 deletions

View File

@@ -172,6 +172,10 @@ if (NOT _lib_exists AND TBB_FIND_REQUIRED AND TBB_FIND_REQUIRED_${_tbb_component
message(FATAL_ERROR "Missed required Intel TBB component: ${_tbb_component}")
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TBB
REQUIRED_VARS _lib_exists)
unset(_tbb_x32_subdir)
unset(_tbb_x64_subdir)
unset(_tbb_arch_subdir)

View File

@@ -91,6 +91,10 @@ foreach (_tbb_component ${TBB_FIND_COMPONENTS})
endif()
endforeach()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TBB
REQUIRED_VARS TBB_tbb_FOUND)
unset(_tbb_x32_subdir)
unset(_tbb_x64_subdir)
unset(_tbb_arch_subdir)

View File

@@ -117,6 +117,10 @@ foreach (_tbb_component ${TBB_FIND_COMPONENTS})
endif()
endforeach()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(TBB
REQUIRED_VARS TBB_tbb_FOUND)
unset(_tbb_x32_subdir)
unset(_tbb_x64_subdir)
unset(_tbb_arch_subdir)