Browse Source

Add _CRT_SECURE_NO_WARNINGS on windows;

bjorn 4 months ago
parent
commit
80f8864682
1 changed files with 1 additions and 0 deletions
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -5,6 +5,7 @@ add_library(http MODULE http.c)
 set_target_properties(http PROPERTIES PREFIX "")
 
 if(WIN32)
+  target_compile_definitions(http PRIVATE _CRT_SECURE_NO_WARNINGS)
   target_link_libraries(http wininet)
 elseif(APPLE)
   target_link_libraries(http objc)