[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.
This commit is contained in:
Tyler Veness
2023-12-29 21:56:06 -08:00
committed by GitHub
parent 47c5fd8620
commit 09f76b32c2

View File

@@ -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)