Skip to content

[cmake] Look for static libxxhash first therewith restoring the symmetry with the builtin provided xxhash library#21996

Merged
dpiparo merged 1 commit intoroot-project:masterfrom
dpiparo:fix_21991
Apr 21, 2026
Merged

[cmake] Look for static libxxhash first therewith restoring the symmetry with the builtin provided xxhash library#21996
dpiparo merged 1 commit intoroot-project:masterfrom
dpiparo:fix_21991

Conversation

@dpiparo
Copy link
Copy Markdown
Member

@dpiparo dpiparo commented Apr 21, 2026

This PR fixes #21991

@dpiparo dpiparo added this to the 6.40.00 milestone Apr 21, 2026
@dpiparo dpiparo self-assigned this Apr 21, 2026
@dpiparo dpiparo requested a review from bellenot as a code owner April 21, 2026 13:12
Comment thread cmake/modules/FindxxHash.cmake Outdated
# and then considered with platform-specific prefixes (e.g. lib) and suffixes (e.g. .so), as defined by
# the variables CMAKE_FIND_LIBRARY_PREFIXES and CMAKE_FIND_LIBRARY_SUFFIXES. Therefore one may specify
# library file names such as libfoo.a directly. This can be used to locate static libraries on UNIX-like systems.
find_library(xxHash_LIBRARY NAMES libxxhash.a libxxHash.a xxhash xxHash PATH_SUFFIXES lib)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe using the cross-platform static library suffix?

Suggested change
find_library(xxHash_LIBRARY NAMES libxxhash.a libxxHash.a xxhash xxHash PATH_SUFFIXES lib)
find_library(xxHash_LIBRARY NAMES libxxhash${CMAKE_STATIC_LIBRARY_SUFFIX} libxxHash${CMAKE_STATIC_LIBRARY_SUFFIX} xxhash xxHash PATH_SUFFIXES lib)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. Update coming.

@github-actions
Copy link
Copy Markdown

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 83b1f73.

therewith restoring the symmetry with the builtin provided xxhash
library.

fixes root-project#21991
@dpiparo dpiparo merged commit 7829b36 into root-project:master Apr 21, 2026
25 of 29 checks passed
@dpiparo dpiparo deleted the fix_21991 branch April 21, 2026 16:14
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.

Link errors for tbb and xxhash libraries

2 participants