Fixes setting CMAKE_C_COMPILER flag being ignored
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4eea5a7007
commit
454c0c581d
|
@ -1,12 +1,14 @@
|
||||||
cmake_minimum_required(VERSION 3.10)
|
cmake_minimum_required(VERSION 3.10)
|
||||||
|
|
||||||
if (GCC AND (NOT CMAKE_C_COMPILER))
|
if (NOT CMAKE_C_COMPILER)
|
||||||
set(CMAKE_C_COMPILER "gcc")
|
if (GCC)
|
||||||
set(CMAKE_CXX_COMPILER "g++")
|
set(CMAKE_C_COMPILER "gcc")
|
||||||
else()
|
set(CMAKE_CXX_COMPILER "g++")
|
||||||
set(CMAKE_C_COMPILER "clang")
|
else()
|
||||||
set(CMAKE_CXX_COMPILER "clang++")
|
set(CMAKE_C_COMPILER "clang")
|
||||||
endif(GCC AND (NOT CMAKE_C_COMPILER))
|
set(CMAKE_CXX_COMPILER "clang++")
|
||||||
|
endif(GCC)
|
||||||
|
endif(NOT CMAKE_C_COMPILER)
|
||||||
|
|
||||||
project(PorygonLang)
|
project(PorygonLang)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue