From 76e4b091e710b9abed9172ba09a4c622739dee14 Mon Sep 17 00:00:00 2001 From: karutoh Date: Wed, 31 Jan 2024 14:00:01 -0800 Subject: [PATCH] Test --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c48c3e..c00cbc9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -257,5 +257,11 @@ target_link_libraries(EHS OpenSSL::SSL OpenSSL::Crypto ZLIB::ZLIB) if (IS_OS_WINDOWS) target_link_libraries(StrToHash ws2_32 avrt EHS) elseif (IS_OS_LINUX) - target_link_libraries(StrToHash z xcb xcb-cursor xcb-xfixes xcb-xinput wayland-client z asound EHS) + if (LINUX_WINDOW_SYSTEM STREQUAL "Wayland") + target_link_libraries(StrToHash wayland-client) + elseif (LINUX_WINDOW_SYSTEM STREQUAL "XCB") + target_link_libraries(StrToHash xcb xcb-cursor xcb-xfixes xcb-xinput) + endif () + + target_link_libraries(StrToHash z asound EHS) endif () \ No newline at end of file