Use Clang as default compiler
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2019-09-19 12:00:48 +02:00
parent 24923deed0
commit 4eea5a7007
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 10 additions and 0 deletions

View File

@ -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)