Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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}")
Expand Down