From dfcc730cbd5d93e1d608c4ea3cd485540ac39c5d Mon Sep 17 00:00:00 2001 From: VasiliPupkin256 <27725951+VasiliPupkin256@users.noreply.github.com> Date: Sat, 22 Jan 2022 21:27:19 +0300 Subject: [PATCH] Making target_compile_options PRIVATE, fix #2726, fix #2507 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3bf80f80..20ffaf81 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()