mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified (#366)
(cherry picked from commit 12a6027b40
)
This commit is contained in:
committed by
Jonathan Müller
parent
f0a0674040
commit
7459ce15d3
@ -37,6 +37,11 @@ if (FMT_USE_CPP11)
|
|||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if (CMAKE_CXX_STANDARD)
|
||||||
|
# Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified.
|
||||||
|
set(CPP11_FLAG )
|
||||||
|
endif ()
|
||||||
|
|
||||||
set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})
|
set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG})
|
||||||
|
|
||||||
# Check if variadic templates are working and not affected by GCC bug 39653:
|
# Check if variadic templates are working and not affected by GCC bug 39653:
|
||||||
|
Reference in New Issue
Block a user