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