aboutsummaryrefslogtreecommitdiff
path: root/c
diff options
context:
space:
mode:
authorsilvanshade <[email protected]>2025-04-02 14:24:40 -0600
committerJack O'Connor <[email protected]>2025-04-02 23:00:20 -0700
commitd81fd85c8c13c6977d0a2dca1241d1315a4a9943 (patch)
treeefe0a7b226151a11dec1f41de701b52b833bb103 /c
parent339abc57529cbfed0edcd511a306e6a1d1f48d67 (diff)
Add -DBLAKE3_USE_TBB to pkg-config CFLAGS
Diffstat (limited to 'c')
-rw-r--r--c/CMakeLists.txt7
1 files changed, 2 insertions, 5 deletions
diff --git a/c/CMakeLists.txt b/c/CMakeLists.txt
index d723983..b737f1a 100644
--- a/c/CMakeLists.txt
+++ b/c/CMakeLists.txt
@@ -240,6 +240,8 @@ if(BLAKE3_USE_TBB)
PUBLIC
BLAKE3_USE_TBB)
endif()
+ list(APPEND PKG_CONFIG_REQUIRES "tbb >= ${TBB_VERSION}")
+ list(APPEND BLAKE3_PKGCONFIG_CFLAGS -DBLAKE3_USE_TBB)
endif()
if(BLAKE3_USE_TBB)
@@ -347,11 +349,6 @@ function(join_pkg_config_requires requires)
set("${requires}" "${acc}" PARENT_SCOPE)
endfunction()
-# calculate pkg-config requirements
-if(BLAKE3_USE_TBB)
- list(APPEND PKG_CONFIG_REQUIRES "tbb >= ${TBB_VERSION}")
-endif()
-
# pkg-config support
join_pkg_config_requires(PKG_CONFIG_REQUIRES)
join_paths(PKG_CONFIG_INSTALL_LIBDIR "\${prefix}" "${CMAKE_INSTALL_LIBDIR}")