mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-22 05:21:08 +01:00
Build: Also find xxHash using pkg-config
My distribution only ships the .pc file for xxHash, not the cmake file, so try to find it that way if find_package() failed.
This commit is contained in:
parent
c65c3c7192
commit
3f987af382
1 changed files with 5 additions and 1 deletions
|
@ -72,7 +72,11 @@ find_package(Catch2 REQUIRED)
|
||||||
|
|
||||||
find_package(Tracy REQUIRED)
|
find_package(Tracy REQUIRED)
|
||||||
|
|
||||||
find_package(xxHash REQUIRED)
|
find_package(xxHash)
|
||||||
|
if (NOT xxHash_FOUND)
|
||||||
|
pkg_search_module(xxHash REQUIRED IMPORTED_TARGET xxHash libxxhash)
|
||||||
|
add_library(xxHash::xxhash ALIAS PkgConfig::xxHash)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(Vulkan REQUIRED)
|
find_package(Vulkan REQUIRED)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue