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