Merge pull request #4989 from Jackie9527/SimpleTexturedDirectx11-build-error-with-VS2022

Fix build error when building SimpleTexturedDirectx11 with VS2022.
pull/4978/head
Kim Kulling 2023-03-01 22:21:33 +01:00 committed by GitHub
commit 6ed433d011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ if ( MSVC )
ADD_DEFINITIONS( -D_SCL_SECURE_NO_WARNINGS )
ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
REMOVE_DEFINITIONS( -DUNICODE -D_UNICODE )
if ( MSVC_VERSION GREATER_EQUAL 1930 )
ADD_DEFINITIONS( -D_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING=1 )
endif ()
endif ()
ADD_COMPILE_DEFINITIONS(SHADER_PATH="${CMAKE_CURRENT_SOURCE_DIR}/SimpleTexturedDirectx11/")