From: Martin Quinson Date: Tue, 28 Jul 2015 11:28:28 +0000 (+0200) Subject: strdup is not part of ansi standards, and msys compiler honor the strict paranoid... X-Git-Tag: v3_12~352 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f16fb3b8d34375fa7dc95bbf33f16f25692d42f7 strdup is not part of ansi standards, and msys compiler honor the strict paranoid flags, so ask for gnu extensions --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b1deaac096..d874f67c05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,9 +30,9 @@ endif() ## We need a decent support of the c++11 standard include(CheckCXXCompilerFlag) -CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) +CHECK_CXX_COMPILER_FLAG("-std=gnu++11" COMPILER_SUPPORTS_CXX11) if(COMPILER_SUPPORTS_CXX11) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") else() message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. "