diff --git a/Source/Core/InputCommon/CMakeLists.txt b/Source/Core/InputCommon/CMakeLists.txt index 0e5612f353..3b9d833183 100644 --- a/Source/Core/InputCommon/CMakeLists.txt +++ b/Source/Core/InputCommon/CMakeLists.txt @@ -108,6 +108,20 @@ if(WIN32) ControllerInterface/ForceFeedback/ForceFeedbackDevice.cpp ControllerInterface/ForceFeedback/ForceFeedbackDevice.h ) + check_cxx_compiler_flag(-fexceptions HAS_FEXCEPTIONS) + if(HAS_FEXCEPTIONS) + set_source_files_properties( + ControllerInterface/WGInput/WGInput.cpp + PROPERTIES COMPILE_OPTIONS "-fexceptions" + ) + endif() + if(MINGW) + target_link_libraries(inputcommon + PRIVATE + dinput8 + cfgmgr32 + ) + endif() elseif(APPLE) target_sources(inputcommon PRIVATE ControllerInterface/Quartz/Quartz.h