aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Schumacher <[email protected]>2025-04-29 06:40:20 +0200
committerHenrik Gaßmann <[email protected]>2025-04-29 12:05:59 +0200
commitcd6e3e4dd9a9518be45ef742606462ddfb0f3cfd (patch)
tree667fb59423714300d9591d1fca14d81e1aa40aec
parentf813ff4b4ca0d6e74b12976048ac821948b765db (diff)
build(cmake): Use tbb32 pkgconfig package on 32-bit builds
-rw-r--r--c/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
index ac4a079..e999345 100644
--- a/c/CMakeLists.txt
+++ b/c/CMakeLists.txt
@@ -240,7 +240,12 @@ if(BLAKE3_USE_TBB)
PUBLIC
BLAKE3_USE_TBB)
endif()
- list(APPEND PKG_CONFIG_REQUIRES "tbb >= ${TBB_VERSION}")
+ if (CMAKE_SIZEOF_VOID_P EQUAL 8)
+ set(TBB_PC_NAME tbb)
+ else()
+ set(TBB_PC_NAME tbb32)
+ endif()
+ list(APPEND PKG_CONFIG_REQUIRES "${TBB_PC_NAME} >= ${TBB_VERSION}")
list(APPEND PKG_CONFIG_CFLAGS -DBLAKE3_USE_TBB)
include(CheckCXXSymbolExists)
check_cxx_symbol_exists(_LIBCPP_VERSION "version" BLAKE3_HAVE_LIBCPP)