The open source OpenXR runtime

t/sdl_test: Compile as UTF-8 to fix MSVC warning

Fix the following warning:

sdl_program.cpp(25): warning C4566: character represented by universal-character-name '\u2603' cannot be represented in the current code page (1252)

+6 -1
+6 -1
src/xrt/targets/sdl_test/CMakeLists.txt
··· 1 - # Copyright 2020-2022, Collabora, Ltd. 1 + # Copyright 2020-2023, Collabora, Ltd. 2 2 # SPDX-License-Identifier: BSL-1.0 3 3 4 4 add_executable( ··· 32 32 ) 33 33 34 34 if(WIN32) 35 + # For UTF-8 in sdl_program.cpp, MSVC defaults to UTF-16. 36 + target_compile_options(sdl-test PRIVATE "$<$<C_COMPILER_ID:MSVC>:/utf-8>") 37 + target_compile_options(sdl-test PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") 38 + 39 + # Need to link against SDL2main on Windows. 35 40 target_link_libraries(sdl-test PRIVATE SDL2::SDL2main) 36 41 endif()