Fix compiler flag check (#2540)

This commit is contained in:
Victor Zverovich 2021-10-09 06:05:05 -07:00
parent 7e4bc94510
commit 1e96e01766

View File

@ -244,7 +244,7 @@ if (HAVE_STRTOD_L)
endif ()
if (MINGW)
check_cxx_compiler_flag("Wa,-mbig-obj" FMT_HAS_MBIG_OBJ)
check_cxx_compiler_flag("-Wa,-mbig-obj" FMT_HAS_MBIG_OBJ)
if (${FMT_HAS_MBIG_OBJ})
target_compile_options(fmt PUBLIC "-Wa,-mbig-obj")
endif()