Making target_compile_options PRIVATE, fix #2726, fix #2507

This commit is contained in:
VasiliPupkin256 2022-01-22 21:27:19 +03:00 committed by Victor Zverovich
parent f7a809be6e
commit dfcc730cbd

View File

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