From 09f76b32c2b579f928a7654aa772179c6de4355a Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Fri, 29 Dec 2023 21:56:06 -0800 Subject: [PATCH] [wpimath] Compile with UTF-8 encoding (#6111) This allows using Greek letters in variable names, which is helpful to make implemented equations follow their source paper more closely. --- wpimath/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpimath/CMakeLists.txt b/wpimath/CMakeLists.txt index d8a9a29435..a22ffc0b83 100644 --- a/wpimath/CMakeLists.txt +++ b/wpimath/CMakeLists.txt @@ -161,7 +161,7 @@ target_compile_definitions(wpimath PRIVATE WPILIB_EXPORTS) target_compile_features(wpimath PUBLIC cxx_std_20) if(MSVC) - target_compile_options(wpimath PUBLIC /bigobj) + target_compile_options(wpimath PUBLIC /utf-8 /bigobj) endif() wpilib_target_warnings(wpimath) target_link_libraries(wpimath wpiutil)