From de99d0574c151da3c5e31eaadb1905ac5ce3a3a5 Mon Sep 17 00:00:00 2001 From: lebarsfa Date: Sun, 11 Aug 2024 19:27:18 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f32afd..a34826e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,6 +70,8 @@ add_executable(Test_devices Main.cpp OSTime.c OSNet.c OSMisc.c OSCore.c) if(WIN32) if(MSVC) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W4") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4") target_link_libraries(Test_devices WS2_32) else() set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-unknown-pragmas -Wextra")