From b9aaa507fc49680d037fd84c043f747a395bce04 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 29 Dec 2016 15:40:33 -0700 Subject: [PATCH] Don't export the -std=c++11 flag from the fmt target --- fmt/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fmt/CMakeLists.txt b/fmt/CMakeLists.txt index 9e491f93..a57bfcdd 100644 --- a/fmt/CMakeLists.txt +++ b/fmt/CMakeLists.txt @@ -16,7 +16,9 @@ if (FMT_CPPFORMAT) endif () # Starting with cmake 3.1 the CXX_STANDARD property can be used instead. -target_compile_options(fmt PUBLIC ${CPP11_FLAG}) +# Note: Don't make -std=c++11 public or interface, since it breaks projects +# that use C++14. +target_compile_options(fmt PRIVATE ${CPP11_FLAG}) if (FMT_PEDANTIC) target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS}) endif ()