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

This commit is contained in:
Eric Fiselier 2016-12-29 15:40:33 -07:00 committed by Victor Zverovich
parent 02553d13a0
commit b9aaa507fc

View File

@ -16,7 +16,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 ()