summaryrefslogtreecommitdiff
path: root/indra/cmake/xxHash.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2023-07-11 13:53:54 +0800
committerErik Kundiman <erik@megapahit.org>2023-07-19 10:45:35 +0800
commit9a3c16da3bd845964de4bc9dfe297bb3901ad84f (patch)
treed35aff19e2ae13558376d4454fdb92830e25a156 /indra/cmake/xxHash.cmake
parent7943a9e01ae970eaa39cabccda68501e47340688 (diff)
Only make sure there's xxHash when using sys libs
Diffstat (limited to 'indra/cmake/xxHash.cmake')
-rw-r--r--indra/cmake/xxHash.cmake7
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)