Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
lebarsfa committed Aug 11, 2024
1 parent 96efebd commit de99d05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit de99d05

Please sign in to comment.