Exclude CMake CXX standard from MSVC

This commit is contained in:
Jack Andersen 2020-04-10 18:54:35 -10:00
parent 9c39a038a5
commit ebda6add23
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,9 @@
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
project(athena)
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()
##################
# Athena Version #

View File

@ -30,7 +30,7 @@
set(LLVM_ROOT_DIR "" CACHE PATH "Location of LLVM development root")
set(LLVM_FIND_COMPONENTS "")
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()
set(llvm_config_names llvm-config-3.9 llvm-config39