mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
CMake: Properly include zstd include directories
This commit is contained in:
@ -127,6 +127,7 @@ include(CheckCCompilerFlag)
|
||||
include(CheckVendoringApproved)
|
||||
include(DolphinCompileDefinitions)
|
||||
include(DolphinDisableWarningsMSVC)
|
||||
include(DolphinLibraryTools)
|
||||
include(RemoveCompileFlag)
|
||||
|
||||
# Enable folders for IDE
|
||||
@ -773,17 +774,13 @@ else()
|
||||
add_subdirectory(Externals/liblzma)
|
||||
endif()
|
||||
|
||||
pkg_check_modules(ZSTD QUIET libzstd>=1.4.0)
|
||||
check_include_file(zstd.h HAVE_ZSTD_H)
|
||||
if(ZSTD_FOUND AND HAVE_ZSTD_H)
|
||||
pkg_check_modules(ZSTD QUIET libzstd>=1.4.0 IMPORTED_TARGET)
|
||||
if(ZSTD_FOUND)
|
||||
message(STATUS "Using shared zstd version: " ${ZSTD_VERSION})
|
||||
dolphin_alias_library(zstd::zstd PkgConfig::ZSTD)
|
||||
else()
|
||||
check_vendoring_approved(zstd)
|
||||
if(ZSTD_FOUND AND NOT HAVE_ZSTD_H)
|
||||
message(STATUS "Shared zstd found but lacks headers, falling back to the static library")
|
||||
else()
|
||||
message(STATUS "Shared zstd not found, falling back to the static library")
|
||||
endif()
|
||||
message(STATUS "Shared zstd not found, falling back to the static library")
|
||||
add_subdirectory(Externals/zstd)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user