[CMake] GCC: -std=g++14 vs -std=c++14

Patrick Boettcher patrick.boettcher at posteo.de
Wed Jun 15 01:50:58 EDT 2016


On Mon, 13 Jun 2016 20:05:23 +0200
Patrick Boettcher <patrick.boettcher at posteo.de> wrote:
> > You also need to correctly set the CXX_EXTENSIONS properties to get
> > a standard standard.  
> 
> Yep, 
> 
>   set(CXX_EXTENSIONS OFF)
> 
> seems to do the trick - thanks.

Well, it is 
  
  set(CMAKE_CXX_EXTENSIONS OFF)

actually. Before the target-definition (add_library or add_executable).


--
Patrick.


More information about the CMake mailing list