Use -std=gnu++11 if -std=c++11 is broken (for MinGW)

This commit is contained in:
vitaut 2015-05-12 07:13:12 -07:00
parent 684495c887
commit 5517c8962e

View File

@ -34,6 +34,11 @@ if (HAVE_STD_CPP11_FLAG)
int main() {}" FMT_CPP11_UNISTD_H)
if (FMT_CPP11_CMATH AND FMT_CPP11_UNISTD_H)
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 ()
set(CMAKE_REQUIRED_FLAGS )
else ()