Skip to content

Commit

Permalink
[tbb] Fix linux pkgconfig (microsoft#33087)
Browse files Browse the repository at this point in the history
Co-authored-by: Jim wang (BEYONDSOFT CONSULTING INC) <[email protected]>
  • Loading branch information
moritz-h and jimwang118 authored Aug 18, 2023
1 parent 7d7c9c6 commit c95000e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ports/tbb/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if(NOT VCPKG_BUILD_TYPE)
if(VCPKG_TARGET_ARCHITECTURE MATCHES "^(x86|arm|wasm32)$")
set(arch_suffix "32")
endif()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/tbb${arch_suffix}.pc" "-ltbb12" "-ltbb12_debug")
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/tbb${arch_suffix}.pc" "-ltbb12" "-ltbb12_debug")
else()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/tbb${arch_suffix}.pc" "-ltbb" "-ltbb_debug")
endif()
unset(arch_suffix)
endif()
vcpkg_fixup_pkgconfig()
Expand Down
1 change: 1 addition & 0 deletions ports/tbb/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
"name": "tbb",
"version": "2021.10.0",
"port-version": 1,
"description": "Intel's Threading Building Blocks.",
"homepage": "https://github.com/oneapi-src/oneTBB",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -8034,7 +8034,7 @@
},
"tbb": {
"baseline": "2021.10.0",
"port-version": 0
"port-version": 1
},
"tcb-span": {
"baseline": "2022-06-15",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tbb.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e8bd03cdf65a8793c09146f67f942afa941c68a0",
"version": "2021.10.0",
"port-version": 1
},
{
"git-tree": "117288ebe187535733fd627985c192553c7b82e6",
"version": "2021.10.0",
Expand Down

0 comments on commit c95000e

Please sign in to comment.