Use Clang as default compiler
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
24923deed0
commit
4eea5a7007
|
@ -1,9 +1,19 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
if (GCC AND (NOT CMAKE_C_COMPILER))
|
||||
set(CMAKE_C_COMPILER "gcc")
|
||||
set(CMAKE_CXX_COMPILER "g++")
|
||||
else()
|
||||
set(CMAKE_C_COMPILER "clang")
|
||||
set(CMAKE_CXX_COMPILER "clang++")
|
||||
endif(GCC AND (NOT CMAKE_C_COMPILER))
|
||||
|
||||
project(PorygonLang)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
|
||||
include_directories(extern)
|
||||
|
||||
if (WINDOWS)
|
||||
|
|
Loading…
Reference in New Issue