Fix build error when building SimpleTexturedDirectx11 with VS2022.

Signed-off-by: Jackie9527 <80555200+Jackie9527@users.noreply.github.com>
pull/4989/head
Jackie9527 2023-03-01 15:08:02 +08:00
parent 90333340d6
commit 09dd0d0c2e
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/")