Fixed compilation issues on Windows

This commit is contained in:
OpenSauce04 2024-10-05 23:25:02 +01:00 committed by OpenSauce
parent 7f78ea74ca
commit bc83c922a1
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -17,6 +17,8 @@
#include <QtWidgets>
#include <fmt/format.h>
#include <fmt/ostream.h>
#undef _UNICODE
#include <getopt.h>
#ifdef __APPLE__
#include <unistd.h> // for chdir
#endif