diff options
Diffstat (limited to 'src/common/CMakeLists.txt')
| -rw-r--r-- | src/common/CMakeLists.txt | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index a12edc584..6bdffcb7a 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -149,7 +149,7 @@ if(ARCHITECTURE_x86_64) | |||
| 149 | x64/xbyak_abi.h | 149 | x64/xbyak_abi.h |
| 150 | x64/xbyak_util.h | 150 | x64/xbyak_util.h |
| 151 | ) | 151 | ) |
| 152 | target_link_libraries(common PRIVATE xbyak) | 152 | target_link_libraries(common PRIVATE xbyak::xbyak) |
| 153 | endif() | 153 | endif() |
| 154 | 154 | ||
| 155 | if (MSVC) | 155 | if (MSVC) |
| @@ -174,17 +174,7 @@ endif() | |||
| 174 | create_target_directory_groups(common) | 174 | create_target_directory_groups(common) |
| 175 | 175 | ||
| 176 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) | 176 | target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) |
| 177 | if (TARGET lz4::lz4) | 177 | target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd) |
| 178 | target_link_libraries(common PRIVATE lz4::lz4) | ||
| 179 | else() | ||
| 180 | target_link_libraries(common PRIVATE LZ4::lz4_shared) | ||
| 181 | endif() | ||
| 182 | if (TARGET zstd::zstd) | ||
| 183 | target_link_libraries(common PRIVATE zstd::zstd) | ||
| 184 | else() | ||
| 185 | target_link_libraries(common PRIVATE | ||
| 186 | $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>) | ||
| 187 | endif() | ||
| 188 | 178 | ||
| 189 | if (YUZU_USE_PRECOMPILED_HEADERS) | 179 | if (YUZU_USE_PRECOMPILED_HEADERS) |
| 190 | target_precompile_headers(common PRIVATE precompiled_headers.h) | 180 | target_precompile_headers(common PRIVATE precompiled_headers.h) |