mirror of https://github.com/AxioDL/zeus.git
Exclude CMake CXX standard from MSVC
This commit is contained in:
parent
6ac3066a6f
commit
ef35789909
|
@ -1,8 +1,10 @@
|
|||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
||||
project(zeus)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
if (NOT MSVC)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
src/CVector3f.cpp
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
||||
project(zeustest)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
if (NOT MSVC)
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
endif()
|
||||
|
||||
add_executable(zeustest main.cpp)
|
||||
target_link_libraries(zeustest zeus)
|
||||
|
|
Loading…
Reference in New Issue