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
|
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
||||||
project(zeus)
|
project(zeus)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
if (NOT MSVC)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
src/CVector3f.cpp
|
src/CVector3f.cpp
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
|
||||||
project(zeustest)
|
project(zeustest)
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
if (NOT MSVC)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_executable(zeustest main.cpp)
|
add_executable(zeustest main.cpp)
|
||||||
target_link_libraries(zeustest zeus)
|
target_link_libraries(zeustest zeus)
|
||||||
|
|
Loading…
Reference in New Issue