mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Don't export the -std=c++11 flag from the fmt target
This commit is contained in:
parent
19f990a9c0
commit
75005bbcd5
@ -112,7 +112,8 @@ 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 ${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)
|
if (FMT_PEDANTIC)
|
||||||
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
|
target_compile_options(fmt PRIVATE ${PEDANTIC_COMPILE_FLAGS})
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user