Add flag checker

This commit is contained in:
meltycriss 2024-08-30 20:11:10 +08:00 committed by Blyron
parent 2816f2752b
commit abdff1716f
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@ endif ()
if (WIN32)
add_compile_definitions (_CRT_SECURE_NO_WARNINGS)
add_compile_options (/utf-8)
check_cxx_compiler_flag(/utf-8 HAS_MSVC_UTF8)
if (HAS_MSVC_UTF8)
add_compile_options (/utf-8)
endif ()
endif ()
set (CARLA_COMMON_DEFINITIONS)