shithub: choc

Download patch

ref: 5f043db7d5e1846190096e9af3f289b60b0ba1b2
parent: bd8f0e81e774c8241b5bd985fe5563b302834db9
author: Alex Mayfield <[email protected]>
date: Tue May 22 16:27:15 EDT 2018

Global fixes for MSVC warning spam

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,13 @@
 set(PACKAGE_COPYRIGHT "Copyright (C) 1993-2017")
 set(PACKAGE_LICENSE "GNU General Public License, version 2")
 
+# Any settings that should apply to all targets in this directory and all
+# subdirectories should go here.  Use judiciously.
+if(MSVC)
+    add_definitions("/D_CRT_SECURE_NO_WARNINGS" "/D_CRT_SECURE_NO_DEPRECATE"
+                    "/D_CRT_NONSTDC_NO_DEPRECATE")
+endif()
+
 find_package(SDL2 2.0.1)
 find_package(SDL2_mixer 2.0.0)
 find_package(SDL2_net 2.0.0)