Building tbb:x64-linux only provides a release version of the library and is missing the debug version. installed/x64-linux/lib/libtbb.a exists installed/x64-linux/debug/lib/libtbb.a does not.
This also results in build errors when trying to build a debug build with the vcpkg tbb library.
A workaround is to use the release version in debug builds:
find_package(TBB CONFIG REQUIRED)
get_target_property(tbb_location TBB::tbb IMPORTED_LOCATION_RELEASE)
set_target_properties(TBB::tbb PROPERTIES
IMPORTED_LOCATION_DEBUG "${tbb_location}")
Building
tbb:x64-linuxonly provides a release version of the library and is missing the debug version.installed/x64-linux/lib/libtbb.aexistsinstalled/x64-linux/debug/lib/libtbb.adoes not.This also results in build errors when trying to build a debug build with the vcpkg tbb library.
A workaround is to use the release version in debug builds: