summaryrefslogtreecommitdiff
path: root/src/common/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/CMakeLists.txt')
-rw-r--r--src/common/CMakeLists.txt14
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)
153endif() 153endif()
154 154
155if (MSVC) 155if (MSVC)
@@ -174,17 +174,7 @@ endif()
174create_target_directory_groups(common) 174create_target_directory_groups(common)
175 175
176target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads) 176target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
177if (TARGET lz4::lz4) 177target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd)
178 target_link_libraries(common PRIVATE lz4::lz4)
179else()
180 target_link_libraries(common PRIVATE LZ4::lz4_shared)
181endif()
182if (TARGET zstd::zstd)
183 target_link_libraries(common PRIVATE zstd::zstd)
184else()
185 target_link_libraries(common PRIVATE
186 $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
187endif()
188 178
189if (YUZU_USE_PRECOMPILED_HEADERS) 179if (YUZU_USE_PRECOMPILED_HEADERS)
190 target_precompile_headers(common PRIVATE precompiled_headers.h) 180 target_precompile_headers(common PRIVATE precompiled_headers.h)