Cmake: some people build shared libtbb - #23087
Closed
andresailer wants to merge 1 commit into
Closed
Conversation
Test Results 6 files 6 suites 23h 3m 28s ⏱️ Results for commit 4887ff4. ♻️ This comment has been updated with latest results. |
pcanal
reviewed
Aug 17, 2026
|
|
||
| if(TBB_FOUND) | ||
| add_library(TBB::tbb IMPORTED STATIC GLOBAL) | ||
| add_library(TBB::tbb IMPORTED UNKNOWN GLOBAL) |
Member
There was a problem hiding this comment.
Side note: this may (or may not) also be beneficial on Windows (CMake documentation says "[using] UNKOWN ... This is especially useful on Windows where a static library and a DLL's import library both have the same file extension.")
Member
|
@andresailer We currently do not support merging in local branches named |
1 task
Contributor
Author
|
Replaced by #23089 Since Github utterly failed, I couldn't replace it until end of business yesterday |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull request:
Changes or fixes:
It fixes build errors on mac OS 26 with shared library builds of libtbb.
When STATIC is given, the rpath configuration during the linking of libThread is incorrect,
leading to errors later on.
After this change:
Note the rpath setting before libtbb.dylib here
Checklist: