VideoCommon/Vulkan: Explicitly link in xxhash

Lessens the dependency on the LIBS variable (and also makes the required
libraries explicit).
This commit is contained in:
Lioncash 2018-03-28 17:00:49 -04:00
parent 03a6a9b240
commit b818cc682c
3 changed files with 6 additions and 2 deletions

View File

@ -588,7 +588,6 @@ if(NOT XXHASH_FOUND)
add_subdirectory(Externals/xxhash)
include_directories(Externals/xxhash)
endif()
LIST(APPEND LIBS xxhash)
find_package(ZLIB)
if(ZLIB_FOUND)

View File

@ -41,5 +41,9 @@ include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV)
# Link against glslang, the other necessary libraries are referenced by the executable.
add_dolphin_library(videovulkan "${SRCS}" "${LIBS}")
target_link_libraries(videovulkan PRIVATE glslang)
target_link_libraries(videovulkan
PRIVATE
glslang
xxhash
)

View File

@ -64,6 +64,7 @@ PUBLIC
core
PRIVATE
png
xxhash
)
if(_M_X86)