forked from fmtlib/fmt
Use -std=gnu++11 if -std=c++11 is broken (for MinGW)
This commit is contained in:
@ -34,6 +34,11 @@ if (HAVE_STD_CPP11_FLAG)
|
|||||||
int main() {}" FMT_CPP11_UNISTD_H)
|
int main() {}" FMT_CPP11_UNISTD_H)
|
||||||
if (FMT_CPP11_CMATH AND FMT_CPP11_UNISTD_H)
|
if (FMT_CPP11_CMATH AND FMT_CPP11_UNISTD_H)
|
||||||
set(CPP11_FLAG -std=c++11)
|
set(CPP11_FLAG -std=c++11)
|
||||||
|
else ()
|
||||||
|
check_cxx_compiler_flag(-std=gnu++11 HAVE_STD_GNUPP11_FLAG)
|
||||||
|
if (HAVE_STD_CPP11_FLAG)
|
||||||
|
set(CPP11_FLAG -std=gnu++11)
|
||||||
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
set(CMAKE_REQUIRED_FLAGS )
|
set(CMAKE_REQUIRED_FLAGS )
|
||||||
else ()
|
else ()
|
||||||
|
Reference in New Issue
Block a user