Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ endif()
# zstd
if (WITH_SYSTEM_ZSTD)
find_package(zstd REQUIRED)
list(APPEND PLATFORM_LIBS zstd::libzstd_shared)
if(TARGET zstd::libzstd_shared)
list(APPEND PLATFORM_LIBS zstd::libzstd_shared)
else()
list(APPEND PLATFORM_LIBS zstd::libzstd_static)
endif()
else()
if(NOT TARGET libzstd_static)
option(ZSTD_BUILD_SHARED "BUILD SHARED LIBRARIES" OFF)
Expand Down