diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-07-11 13:53:54 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-07-19 10:45:35 +0800 |
commit | 9a3c16da3bd845964de4bc9dfe297bb3901ad84f (patch) | |
tree | d35aff19e2ae13558376d4454fdb92830e25a156 /indra/cmake | |
parent | 7943a9e01ae970eaa39cabccda68501e47340688 (diff) |
Only make sure there's xxHash when using sys libs
Diffstat (limited to 'indra/cmake')
-rw-r--r-- | indra/cmake/xxHash.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/cmake/xxHash.cmake b/indra/cmake/xxHash.cmake index a7c1cba62c..2dcab005ba 100644 --- a/indra/cmake/xxHash.cmake +++ b/indra/cmake/xxHash.cmake @@ -5,4 +5,11 @@ endif (XXHASH_CMAKE_INCLUDED) set (XXHASH_CMAKE_INCLUDED TRUE) include(Prebuilt) + +if (NOT (USE_AUTOBUILD_3P OR USE_CONAN)) + include(FindPkgConfig) + pkg_check_modules(Xxhash REQUIRED libxxhash) + return () +endif () + use_prebuilt_binary(xxhash) |