diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e6721b0..773823b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,4 +168,6 @@ if(OS_WINDOWS) TARGET obs-websocket APPEND PROPERTY AUTORCC_OPTIONS --format-version 1) + + target_link_options(obs-websocket PRIVATE /IGNORE:4099) endif() diff --git a/cmake/legacy.cmake b/cmake/legacy.cmake index e83d1f93..e7378c6c 100644 --- a/cmake/legacy.cmake +++ b/cmake/legacy.cmake @@ -155,6 +155,7 @@ endif() if(MSVC) target_compile_options(obs-websocket PRIVATE /wd4267 /wd4996) + target_link_options(obs-websocket PRIVATE "LINKER:/IGNORE:4099") else() target_compile_options( obs-websocket