2022-03-18 04:52:30 +08:00
|
|
|
set(VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES enabled)
|
|
|
|
|
2017-05-22 17:57:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-03-23 12:07:13 +08:00
|
|
|
REPO oneapi-src/oneTBB
|
2022-09-24 03:03:33 +08:00
|
|
|
REF v2021.5.0
|
|
|
|
SHA512 0e7b71022e397a6d7abb0cea106847935ae79a1e12a6976f8d038668c6eca8775ed971202c5bd518f7e517092b67af805cc5feb04b5c3a40e9fbf972cc703a46
|
|
|
|
HEAD_REF onetbb_2021
|
2018-08-29 14:19:08 +08:00
|
|
|
)
|
2017-05-22 17:57:19 +08:00
|
|
|
|
2022-09-24 03:03:33 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DTBB_TEST=OFF
|
|
|
|
-DTBB_STRICT=OFF
|
2018-08-29 14:19:08 +08:00
|
|
|
)
|
2020-11-14 05:56:26 +08:00
|
|
|
|
2022-09-24 03:03:33 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/TBB")
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/doc"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
# These are duplicate libraries provided on Windows -- users should use the tbb12 libraries instead
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/tbb.lib"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/tbb_debug.lib"
|
2019-04-09 14:23:31 +08:00
|
|
|
)
|
2020-11-14 05:56:26 +08:00
|
|
|
|
2022-09-24 03:03:33 +08:00
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/share/tbb/TBBConfig.cmake" _contents)
|
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/tbb/TBBConfig.cmake" "
|
|
|
|
include(CMakeFindDependencyMacro)
|
|
|
|
find_dependency(Threads)
|
|
|
|
${_contents}")
|
2016-10-19 05:53:41 +08:00
|
|
|
|
2022-09-24 03:03:33 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|