-
-
Notifications
You must be signed in to change notification settings - Fork 564
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds a small CMake Find Module which uses pkg-config to find the xxHash library. De-vendoring dependencies (when it makes sense) is required for inclusion in some Linux distributions, like Debian.
- Loading branch information
Showing
12 changed files
with
27 additions
and
4,410 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# SPDX-FileCopyrightText: 2025 Andrea Pappacoda <[email protected]> | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
find_package(PkgConfig QUIET) | ||
pkg_search_module(XXHASH QUIET IMPORTED_TARGET libxxhash) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(xxHash | ||
REQUIRED_VARS XXHASH_LINK_LIBRARIES | ||
VERSION_VAR XXHASH_VERSION | ||
) | ||
|
||
if (xxHash_FOUND AND NOT TARGET xxHash::xxhash) | ||
add_library(xxHash::xxhash ALIAS PkgConfig::XXHASH) | ||
endif() |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.