[build] Fix the windows build with fmt (#5544)

This commit is contained in:
autoantwort
2023-08-17 02:07:23 +02:00
committed by GitHub
parent 7a37e3a496
commit 6953a303b3

View File

@@ -107,7 +107,7 @@ set_property(TARGET wpiutil PROPERTY FOLDER "libraries")
target_compile_features(wpiutil PUBLIC cxx_std_20)
if (MSVC)
target_compile_options(wpiutil PUBLIC /permissive- /Zc:throwingNew /MP /bigobj)
target_compile_options(wpiutil PUBLIC /permissive- /Zc:preprocessor /Zc:throwingNew /MP /bigobj)
target_compile_definitions(wpiutil PRIVATE -D_CRT_SECURE_NO_WARNINGS)
endif()
wpilib_target_warnings(wpiutil)