* Refactored developer package * Added fuzzing for CMAKE_MODULE_LINKER_FLAGS as well * Added options for developer package * More improvements * Further improvements * Removed global CMAKE_MODULE_PATH population * Fixes * Final fixes * Fixed python build * Fix for TBB * Fixed Find TBB * Fixed install * Fixes for OV features * Split developer targets per component * Fixed IE build tree config * Fixed ITT * Fixed review comments * Clean export dependencies * Fixed export of pugixml * Added IEDevScripts_DIR for Android * Fixed Android #2 * Fixed Android #3 * Fixed python cc * Disabled Core threading tests on GNA
34 lines
916 B
CMake
34 lines
916 B
CMake
# Copyright (C) 2020 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
########################################################################
|
|
#
|
|
# Perform search of TBB package corresponding with specified search order.
|
|
#
|
|
# TBBROOT var is set into external package path or has a default value
|
|
# with IE own version of TBB. Search order is next:
|
|
# 1) ${TBBROOT}/cmake
|
|
# 2) ${TBBROOT} with IE own version of TBBConfig.cmake (actual for TBB < 2017.7)
|
|
#
|
|
|
|
## Path to IE own version of TBBConfig.cmake old TBB version without cmake config.
|
|
if(APPLE)
|
|
set(IE_OWN_TBB_CONFIG tbb/mac)
|
|
elseif(UNIX)
|
|
set(IE_OWN_TBB_CONFIG tbb/lnx)
|
|
elseif(WIN)
|
|
set(IE_OWN_TBB_CONFIG tbb/win)
|
|
else()
|
|
unset(IE_OWN_TBB_CONFIG)
|
|
endif()
|
|
|
|
find_package(TBB
|
|
CONFIG
|
|
PATHS ${TBBROOT}/cmake
|
|
${IEDevScripts_DIR}/${IE_OWN_TBB_CONFIG}
|
|
NO_DEFAULT_PATH
|
|
)
|
|
|
|
find_package_handle_standard_args(TBB CONFIG_MODE)
|