commit 5f043db7d5e1846190096e9af3f289b60b0ba1b2
Author: Alex Mayfield <alexmax2742@gmail.com>
AuthorDate: Tue May 22 20:27:15 2018 -0400
Commit: Alex Mayfield <alexmax2742@gmail.com>
CommitDate: Tue May 22 20:27:15 2018 -0400
Global fixes for MSVC warning spam
---
CMakeLists.txt | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index abb073f4..fa1f6c32 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,13 @@ string(REGEX REPLACE " Doom$" "" PACKAGE_SHORTNAME "${PACKAGE_NAME}")
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)