From 47ae521557a3f1a3a338e8f5b1b75add53754c8d Mon Sep 17 00:00:00 2001 From: Attila Mark Date: Sun, 7 Jun 2020 19:22:49 -0700 Subject: [PATCH] MINGW cross compiler fixes --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f00dee81..5f95478f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -192,6 +192,10 @@ if (HAVE_STRTOD_L) target_compile_definitions(fmt PUBLIC FMT_LOCALE) endif () +if (MINGW) + target_compile_options(fmt PUBLIC "-Wa,-mbig-obj") +endif () + if (FMT_WERROR) target_compile_options(fmt PRIVATE ${WERROR_FLAG}) endif ()