Commit 80bfa855 authored by Eric Fiselier's avatar Eric Fiselier Committed by Jonathan Müller

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

(cherry picked from commit b9aaa507)
parent 850405f0
...@@ -15,7 +15,9 @@ if (FMT_CPPFORMAT) ...@@ -15,7 +15,9 @@ if (FMT_CPPFORMAT)
endif () endif ()
# Starting with cmake 3.1 the CXX_STANDARD property can be used instead. # 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) if (FMT_PEDANTIC)
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS}) target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
endif () 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