Commit 75005bbc authored by Victor Zverovich's avatar Victor Zverovich

Don't export the -std=c++11 flag from the fmt target

parent 19f990a9
......@@ -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 ()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment