mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-27 10:24:18 +01:00
Merge pull request #9054 from Docteh/just_lz4
CMake: Try add_library "lz4" if "lz4::lz4" is unavailable
This commit is contained in:
commit
8649c46c74
@ -169,7 +169,11 @@ endif()
|
|||||||
create_target_directory_groups(common)
|
create_target_directory_groups(common)
|
||||||
|
|
||||||
target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
|
target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
|
||||||
target_link_libraries(common PRIVATE lz4::lz4)
|
if (TARGET lz4::lz4)
|
||||||
|
target_link_libraries(common PRIVATE lz4::lz4)
|
||||||
|
else()
|
||||||
|
target_link_libraries(common PRIVATE LZ4::lz4_shared)
|
||||||
|
endif()
|
||||||
if (TARGET zstd::zstd)
|
if (TARGET zstd::zstd)
|
||||||
target_link_libraries(common PRIVATE zstd::zstd)
|
target_link_libraries(common PRIVATE zstd::zstd)
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user