Commit 12a6027b authored by Victor Zverovich's avatar Victor Zverovich

Don't use -std compiler flag if CMAKE_CXX_STANDARD is specified (#366)

parent a5d0adf3
...@@ -37,6 +37,11 @@ if (FMT_USE_CPP11) ...@@ -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:
......
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