summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-05 18:26:09 +0100
committerGitHub <noreply@github.com>2022-12-05 18:26:09 +0100
commit3b19f741bd6a19f603858e6cdf8db41516c7075f (patch)
treeb81c29eed062f83a3f01161710b00d5d531e666b /src/common
parentMerge pull request #9383 from FernandoS27/poke-great (diff)
parentcmake: prefer system libraries (diff)
downloadyuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.tar
yuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.tar.gz
yuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.tar.bz2
yuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.tar.lz
yuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.tar.xz
yuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.tar.zst
yuzu-3b19f741bd6a19f603858e6cdf8db41516c7075f.zip
Diffstat (limited to 'src/common')
-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)
x64/xbyak_abi.h
x64/xbyak_util.h
)
- target_link_libraries(common PRIVATE xbyak)
+ target_link_libraries(common PRIVATE xbyak::xbyak)
endif()
if (MSVC)
@@ -174,17 +174,7 @@ endif()
create_target_directory_groups(common)
target_link_libraries(common PUBLIC ${Boost_LIBRARIES} fmt::fmt microprofile Threads::Threads)
-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)
- target_link_libraries(common PRIVATE zstd::zstd)
-else()
- target_link_libraries(common PRIVATE
- $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>)
-endif()
+target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd)
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(common PRIVATE precompiled_headers.h)