Skip to content

turn on TBB if it is available and the stdlib is libstdc++#1700

Merged
ericniebler merged 2 commits intoNVIDIA:mainfrom
ericniebler:tbb-linking-issue
Dec 6, 2025
Merged

turn on TBB if it is available and the stdlib is libstdc++#1700
ericniebler merged 2 commits intoNVIDIA:mainfrom
ericniebler:tbb-linking-issue

Conversation

@ericniebler
Copy link
Collaborator

libstdc++'s <execution> header includes <tbb/tbb.h> if it is available. unless TBB is linked to the resulting executable, linking will fail with unresolved symbols.

this PR automatically sets STDEXEC_ENABLE_TBB to TRUE if the TBB cmake package is found and the stdlib is libstdc++.

it also refactors the top-level CMakeLists.txt file to move TBB, ASIO, and Taskflow configuration into their own .cmake files.

@ericniebler ericniebler merged commit 3d718d6 into NVIDIA:main Dec 6, 2025
40 of 42 checks passed
@ericniebler ericniebler deleted the tbb-linking-issue branch December 6, 2025 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant