mirror of https://github.com/libAthena/athena.git
Exclude CMake CXX standard from MSVC
This commit is contained in:
parent
9c39a038a5
commit
ebda6add23
|
@ -1,7 +1,9 @@
|
||||||
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(athena)
|
project(athena)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
if (NOT MSVC)
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
##################
|
##################
|
||||||
# Athena Version #
|
# Athena Version #
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
set(LLVM_ROOT_DIR "" CACHE PATH "Location of LLVM development root")
|
set(LLVM_ROOT_DIR "" CACHE PATH "Location of LLVM development root")
|
||||||
set(LLVM_FIND_COMPONENTS "")
|
set(LLVM_FIND_COMPONENTS "")
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
get_filename_component(LLVM_ROOT_DIR [HKEY_LOCAL_MACHINE\\Software\\LLVM\\LLVM] ABSOLUTE)
|
get_filename_component(LLVM_ROOT_DIR [HKEY_LOCAL_MACHINE\\Software\\LLVM\\LLVM] ABSOLUTE CACHE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(llvm_config_names llvm-config-3.9 llvm-config39
|
set(llvm_config_names llvm-config-3.9 llvm-config39
|
||||||
|
|
Loading…
Reference in New Issue