Skip to content

Commit

Permalink
C++11 (for ICB): do NOT use hard-coded gnu++11.
Browse files Browse the repository at this point in the history
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, ...).
  • Loading branch information
Franck HOUSSEN committed Jun 25, 2018
1 parent 1c3f71c commit e9c77e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
"
Expand Down

0 comments on commit e9c77e7

Please sign in to comment.