From bc83c922a12f4d92f11939e4b83d87b2dcf0b03b Mon Sep 17 00:00:00 2001 From: OpenSauce04 Date: Sat, 5 Oct 2024 23:25:02 +0100 Subject: [PATCH] Fixed compilation issues on Windows --- src/lime_qt/CMakeLists.txt | 3 +++ src/lime_qt/main.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/lime_qt/CMakeLists.txt b/src/lime_qt/CMakeLists.txt index 7d61acc2a..344c76bbe 100644 --- a/src/lime_qt/CMakeLists.txt +++ b/src/lime_qt/CMakeLists.txt @@ -294,6 +294,9 @@ create_target_directory_groups(lime-qt) target_link_libraries(lime-qt PRIVATE audio_core lime_common lime_core input_common network video_core) target_link_libraries(lime-qt PRIVATE Boost::boost nihstro-headers Qt6::Widgets Qt6::Multimedia Qt6::Concurrent) +if (MSVC) + target_link_libraries(lime-qt PRIVATE getopt) +endif() target_link_libraries(lime-qt PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) if (ENABLE_OPENGL) diff --git a/src/lime_qt/main.cpp b/src/lime_qt/main.cpp index a558f51d0..d075ee0ac 100644 --- a/src/lime_qt/main.cpp +++ b/src/lime_qt/main.cpp @@ -17,6 +17,8 @@ #include #include #include +#undef _UNICODE +#include #ifdef __APPLE__ #include // for chdir #endif