apply CMAKE_CXX_STANDARD

This commit is contained in:
Jack Andersen 2017-06-17 16:53:39 -10:00
parent 71a361f54e
commit c854a45dfe
8 changed files with 18 additions and 10 deletions

View File

@ -1,6 +1,11 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # because of CMAKE_CXX_STANDARD
cmake_policy(SET CMP0054 NEW)
project(urde)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC)
if(${CMAKE_GENERATOR} MATCHES "Visual Studio*")
set(VS_DEFINES "/MP")
@ -22,7 +27,7 @@ if(MSVC)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}\
-std=c++14 -Wno-multichar -fno-exceptions -Wno-narrowing -Wno-nullability-completeness -Werror=return-type")
-Wno-multichar -fno-exceptions -Wno-narrowing -Wno-nullability-completeness -Werror=return-type")
if(APPLE)
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -flto=thin")

2
amuse

@ -1 +1 @@
Subproject commit 3d56d5f0ccd10a558f0e47746cfd64126da09380
Subproject commit 4e7c31849d5c9e1e274fa86fc74d3cbecf9e11de

2
hecl

@ -1 +1 @@
Subproject commit e3516a0557385b74c80668dd637b72ac944b15ba
Subproject commit da67582f23559060c842c7daa75bec31efbc816f

2
jbus

@ -1 +1 @@
Subproject commit b8c42676ce9055bc48f9f7d75eb9f8964e6cfda3
Subproject commit 3c4a99fbe87e8f043636a6c18bb791bb21a4d115

@ -1 +1 @@
Subproject commit 03f16f7f48d1f9316eefcb8118496def40da47db
Subproject commit 2401875b9a391a3126a5bbfee452bd4db4f3b014

2
nod

@ -1 +1 @@
Subproject commit 671e73c4bc98a6a3f94c768a046b5489b524d63f
Subproject commit 55ed73b9bb1ec76303a79fd07f80728acbe5a46b

@ -1 +1 @@
Subproject commit 59f00d82970cd5a424775273988983d7ad0516a5
Subproject commit 05b504a639d9b8e2d332403cec0c634c642095ea

View File

@ -1,11 +1,14 @@
cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # because of CMAKE_CXX_STANDARD
project(visigen)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}\
-std=c++14 -Wno-multichar -fno-exceptions -Wno-narrowing -Wno-nullability-completeness -Werror=return-type")
-Wno-multichar -fno-exceptions -Wno-narrowing -Wno-nullability-completeness -Werror=return-type")
endif()
if(APPLE)