瀏覽代碼

Disable CRT "secure" warnings

Suppresses 88 of the 213 warnings reported when compiling with
MSVC 2015 on AppVeyor.
pull/393/head
Ahmad Fatoum 8 年之前
父節點
當前提交
17c91bad6f
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: C3EAC3DE9321D59B
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/CMakeLists.txt

+ 2
- 0
src/CMakeLists.txt 查看文件

@ -44,6 +44,8 @@ if(${PLATFORM} MATCHES "Desktop")
set(GRAPHICS "GRAPHICS_API_OPENGL_33")
set_source_files_properties(rglfw.c PROPERTIES COMPILE_FLAGS "-x objective-c")
link_libraries("-framework CoreFoundation -framework Cocoa -framework IOKit -framework CoreVideo")
elseif(WIN32)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
elseif(${PLATFORM} MATCHES "Web")
set(PLATFORM "PLATFORM_WEB")

Loading…
取消
儲存