summaryrefslogtreecommitdiff
path: root/indra/cmake/xxHash.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'indra/cmake/xxHash.cmake')
-rw-r--r--indra/cmake/xxHash.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/cmake/xxHash.cmake b/indra/cmake/xxHash.cmake
index 84f4f4e0f2..a4b86f65fc 100644
--- a/indra/cmake/xxHash.cmake
+++ b/indra/cmake/xxHash.cmake
@@ -1,13 +1,14 @@
# -*- cmake -*-
-if (XXHASH_CMAKE_INCLUDED)
- return()
-endif (XXHASH_CMAKE_INCLUDED)
-set (XXHASH_CMAKE_INCLUDED TRUE)
+include_guard()
include(Prebuilt)
include(FindPkgConfig)
pkg_check_modules(Xxhash REQUIRED libxxhash)
+if (DARWIN_USE_HOMEBREW AND Xxhash_INCLUDE_DIRS)
+ # hbxxh.cpp includes <xxhash.h>. Homebrew does not put that directory on the default search path.
+ include_directories(SYSTEM ${Xxhash_INCLUDE_DIRS})
+endif ()
return ()
use_prebuilt_binary(xxhash)