diff --git a/CMakeLists.txt b/CMakeLists.txt index 8239401a..177f1e0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,8 @@ if (FMT_CPPFORMAT) endif () # Starting with CMake 3.1 the CXX_STANDARD property can be used instead. -target_compile_options(fmt PUBLIC ${CPP14_FLAG}) +# Don't export -std since it may break projects that use other standards. +target_compile_options(fmt PRIVATE ${CPP14_FLAG}) if (FMT_PEDANTIC) target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS}) endif ()