From e9c77e7fccc5607669b337560b3ae316ba43a33a Mon Sep 17 00:00:00 2001 From: Franck HOUSSEN Date: Mon, 25 Jun 2018 14:44:53 +0200 Subject: [PATCH] C++11 (for ICB): do NOT use hard-coded gnu++11. Let cmake pick-up what's best (need cmake > 3.1 to do so). Hard-coded gnu++11 may break on specific archis (armel, ppc64el, ...). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index daf69a07f..a9f3783c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ endfunction(pexamples) if (ICB) enable_language(C CXX) # For testing binding with c/c++. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") + set(CMAKE_CXX_STANDARD 11) # OK, since cmake-3.1 only. file(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/PROG_ICB.f90 "