Use externals xxhash if not found installed

Also in the case that you don't have v0.8.0 minimum installed
This commit is contained in:
Ryan Houdek 2021-07-05 17:40:09 -07:00
parent e01e6d9293
commit 728e9fc187
2 changed files with 8 additions and 2 deletions

View File

@ -105,7 +105,13 @@ endif()
find_package(PkgConfig REQUIRED)
find_package(Python 3.0 REQUIRED COMPONENTS Interpreter)
pkg_check_modules(XXHASH libxxhash REQUIRED)
pkg_check_modules(XXHASH libxxhash>=0.8.0 QUIET)
if (NOT XXHASH_FOUND)
message(STATUS "xxHash not found. Using Externals")
add_subdirectory(External/xxhash/)
include_directories(External/xxhash/)
endif()
add_definitions(-Wno-trigraphs)
add_definitions(-DGLOBAL_DATA_DIRECTORY="${DATA_DIRECTORY}/")

View File

@ -33,7 +33,7 @@ $end_info$
#include "Interface/HLE/Thunks/Thunks.h"
#include "FEXCore/Utils/Allocator.h"
#include <xxh3.h>
#include <xxhash.h>
#include <fstream>
#include <unistd.h>
#include <filesystem>