mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-30 13:50:05 +00:00
Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified (#366)
This commit is contained in:
parent
a5d0adf395
commit
12a6027b40
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user