Add /utf-8 to MSVC builds of the test project

pull/1683/head
Samuel Nicholas 2025-01-15 20:08:30 +10:30
parent 947f0071bc
commit beea2e587f
1 changed files with 8 additions and 0 deletions

View File

@ -77,6 +77,14 @@ foreach( TARGET_ALIAS template_debug template_release editor )
FOLDER "godot-cpp"
)
target_compile_options( ${TARGET_NAME}
PRIVATE
# The test project uses utf-8 characters in its source files:
# example.h:282.283, and example.cpp:774,8775,778
# which require interpretation of source files as utf-8 by MSVC
$<${IS_MSVC}:/utf-8>
)
# Only blank the suffix on osx to match SCons
if( CMAKE_SYSTEM_NAME STREQUAL Darwin )
set_target_properties( ${TARGET_NAME}