diff options
| author | Ahmad Fatoum <[email protected]> | 2017-11-23 07:44:55 +0100 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2017-11-23 07:56:02 +0100 |
| commit | 17c91bad6f4c44c93933190eba5f08b69b257a67 (patch) | |
| tree | fe8f0c4f8a1a4b1f5b74c901f4419ea38e1c8658 /src/CMakeLists.txt | |
| parent | 1e1b20c889a53d24cfc37880bf6e6bba46f2ae78 (diff) | |
| download | raylib-17c91bad6f4c44c93933190eba5f08b69b257a67.tar.gz raylib-17c91bad6f4c44c93933190eba5f08b69b257a67.zip | |
Disable CRT "secure" warnings
Suppresses 88 of the 213 warnings reported when compiling with
MSVC 2015 on AppVeyor.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fc1e4ca8..6ab8e606 100644 --- a/src/CMakeLists.txt +++ b/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") |
