From 341417896f55b83ac2afbc5b44cd5d78aa4e7ff7 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Sat, 5 Aug 2023 11:03:44 -0600 Subject: [PATCH] update input qt --- simple64-input-qt/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/simple64-input-qt/CMakeLists.txt b/simple64-input-qt/CMakeLists.txt index 2e2a503..19e764f 100644 --- a/simple64-input-qt/CMakeLists.txt +++ b/simple64-input-qt/CMakeLists.txt @@ -47,7 +47,13 @@ else() target_compile_options(simple64-input-qt PRIVATE -march=x86-64-v3) target_link_options(simple64-input-qt PRIVATE -march=x86-64-v3) endif() -if (NOT APPLE) + +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + target_link_options(simple64-input-qt PRIVATE -fuse-ld=lld) +endif() + +if (NOT APPLE AND NOT WIN32) target_link_options(simple64-input-qt PRIVATE -Wl,-Bsymbolic -Wl,-Bsymbolic-functions) -endif (NOT APPLE) +endif () + target_link_libraries(simple64-input-qt PRIVATE Qt6::Widgets Qt6::Network SDL2::SDL2)