From 4a4e062f8c5aab3ae1420008f629ac35d1792c54 Mon Sep 17 00:00:00 2001 From: Ben McAvoy Date: Wed, 13 Nov 2024 14:47:11 +0000 Subject: [PATCH] fix: enable utf-8 support on msvc --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50e349957..5b894f5fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,12 +7,15 @@ set (CMAKE_EXPORT_COMPILE_COMMANDS ON) set (CMAKE_CXX_STANDARD 20) set (CMAKE_CXX_STANDARD_REQUIRED ON) +if (MSVC) + add_compile_options(/utf-8) +endif() + # Project declaration project(megatest) add_subdirectory(libs) -# binary file(GLOB_RECURSE SOURCES "src/*.cpp") add_executable(${PROJECT_NAME} ${SOURCES}) target_include_directories(${PROJECT_NAME}