diff --git a/fmt/CMakeLists.txt b/fmt/CMakeLists.txt index 89ef1f35..ca9c8e39 100644 --- a/fmt/CMakeLists.txt +++ b/fmt/CMakeLists.txt @@ -15,7 +15,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 ()