diff --git a/Externals/libusb/CMakeLists.txt b/Externals/libusb/CMakeLists.txt index ffd6d42781..39c29608b3 100644 --- a/Externals/libusb/CMakeLists.txt +++ b/Externals/libusb/CMakeLists.txt @@ -9,7 +9,7 @@ add_library(usb STATIC EXCLUDE_FROM_ALL dolphin_disable_warnings(usb) set_target_properties(usb PROPERTIES VERSION 1.0.26) -if(WIN32) +if(MSVC) target_include_directories(usb BEFORE PUBLIC libusb/libusb PRIVATE libusb/msvc) else() target_include_directories(usb diff --git a/Externals/watcher/CMakeLists.txt b/Externals/watcher/CMakeLists.txt index ef47730f89..ffc2fc189f 100644 --- a/Externals/watcher/CMakeLists.txt +++ b/Externals/watcher/CMakeLists.txt @@ -1,4 +1,12 @@ add_library(watcher INTERFACE IMPORTED GLOBAL) + +if(WIN32) + check_cxx_compiler_flag(-fexceptions HAS_FEXCEPTIONS) + if(HAS_FEXCEPTIONS) + target_compile_options(watcher INTERFACE -fexceptions) + endif() +endif() + set_target_properties(watcher PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_LIST_DIR}/watcher/include )