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)
|
||||
|
||||
if (GCC AND (NOT CMAKE_C_COMPILER))
|
||||
if (NOT CMAKE_C_COMPILER)
|
||||
if (GCC)
|
||||
set(CMAKE_C_COMPILER "gcc")
|
||||
set(CMAKE_CXX_COMPILER "g++")
|
||||
else()
|
||||
else()
|
||||
set(CMAKE_C_COMPILER "clang")
|
||||
set(CMAKE_CXX_COMPILER "clang++")
|
||||
endif(GCC AND (NOT CMAKE_C_COMPILER))
|
||||
endif(GCC)
|
||||
endif(NOT CMAKE_C_COMPILER)
|
||||
|
||||
project(PorygonLang)
|
||||
|
||||
|
|
Loading…
Reference in New Issue