mirror of https://github.com/AxioDL/zeus.git
apply CMAKE_CXX_STANDARD
This commit is contained in:
parent
328a1519a0
commit
e4a8fc868b
|
@ -1,6 +1,9 @@
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # because of CMAKE_CXX_STANDARD
|
||||||
project(zeus)
|
project(zeus)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
if (NOT DEFINED ATHENA_INCLUDE_DIR)
|
if (NOT DEFINED ATHENA_INCLUDE_DIR)
|
||||||
set(ATHENA_INCLUDE_DIR ../athena/include)
|
set(ATHENA_INCLUDE_DIR ../athena/include)
|
||||||
endif()
|
endif()
|
||||||
|
@ -25,7 +28,7 @@ set(SOURCES
|
||||||
|
|
||||||
# SSELegacy.cpp compiled separately to escape the effects of link-time optimization
|
# SSELegacy.cpp compiled separately to escape the effects of link-time optimization
|
||||||
if(NOT MSVC)
|
if(NOT MSVC)
|
||||||
set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-msse4.1 -msse4.2 -std=c++14")
|
set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-msse4.1 -msse4.2")
|
||||||
if(CUSTOM_FLAGS)
|
if(CUSTOM_FLAGS)
|
||||||
string(REPLACE "-flto=thin" "" CUSTOM_FLAGS ${CMAKE_CXX_FLAGS})
|
string(REPLACE "-flto=thin" "" CUSTOM_FLAGS ${CMAKE_CXX_FLAGS})
|
||||||
endif(CUSTOM_FLAGS)
|
endif(CUSTOM_FLAGS)
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) # because of CMAKE_CXX_STANDARD
|
||||||
project(zeustest)
|
project(zeustest)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
include_directories(../include)
|
include_directories(../include)
|
||||||
|
|
||||||
add_executable(zeustest main.cpp)
|
add_executable(zeustest main.cpp)
|
||||||
|
|
Loading…
Reference in New Issue