From b0737b882d9029f27b64fe8469656a5241f28e9c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 29 Apr 2021 17:51:20 -0500 Subject: [PATCH] Adjust MSVC warning level --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 18efd6e..96cbbe5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,8 +26,7 @@ if (BUILD_SHARED_LIBS_OVERRIDE) endif() if(MSVC) - target_compile_options(moonlight-common-c PRIVATE /W4 /wd4100 /wd4232) - target_compile_definitions(moonlight-common-c PRIVATE -D_CRT_SECURE_NO_WARNINGS=1 -D_CRT_NONSTDC_NO_DEPRECATE=1) + target_compile_options(moonlight-common-c PRIVATE /W3 /wd4100 /wd4232 /WX) target_link_libraries(moonlight-common-c PRIVATE ws2_32.lib qwave.lib winmm.lib) else() target_compile_options(moonlight-common-c PRIVATE -Wall -Wextra -Wno-unused-parameter -Werror)