mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-16 23:17:29 +00:00
3rdparty: Add option to build against system xxhash
Signed-off-by: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
This commit is contained in:
parent
8ed42410bf
commit
7398200980
16
3rdparty/CMakeLists.txt
vendored
16
3rdparty/CMakeLists.txt
vendored
@ -122,11 +122,17 @@ set(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX_OLD})
|
|||||||
|
|
||||||
|
|
||||||
# xxHash
|
# xxHash
|
||||||
set(XXHASH_BUNDLED_MODE ON)
|
if (USE_SYSTEM_XXHASH)
|
||||||
set(XXHASH_BUILD_XXHSUM OFF)
|
pkg_check_modules(XXHASH REQUIRED IMPORTED_TARGET libxxhash)
|
||||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Make xxHash build static libs")
|
add_library(xxhash INTERFACE)
|
||||||
add_subdirectory(xxHash/cmake_unofficial EXCLUDE_FROM_ALL)
|
target_link_libraries(xxhash INTERFACE PkgConfig::XXHASH)
|
||||||
target_include_directories(xxhash INTERFACE xxHash)
|
else()
|
||||||
|
set(XXHASH_BUNDLED_MODE ON)
|
||||||
|
set(XXHASH_BUILD_XXHSUM OFF)
|
||||||
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Make xxHash build static libs")
|
||||||
|
add_subdirectory(xxHash/cmake_unofficial EXCLUDE_FROM_ALL)
|
||||||
|
target_include_directories(xxhash INTERFACE xxHash)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
# cereal
|
# cereal
|
||||||
|
Loading…
Reference in New Issue
Block a user