Global fixes for MSVC warning spam
This commit is contained in:
parent
bd8f0e81e7
commit
5f043db7d5
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue