From 6953a303b365e607f3f8a4bbd3eb536ec5d0611f Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Thu, 17 Aug 2023 02:07:23 +0200 Subject: [PATCH] [build] Fix the windows build with fmt (#5544) --- wpiutil/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpiutil/CMakeLists.txt b/wpiutil/CMakeLists.txt index 004b3617cb..8422b61231 100644 --- a/wpiutil/CMakeLists.txt +++ b/wpiutil/CMakeLists.txt @@ -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)