Set compilers and linker before project() call
This commit is contained in:
parent
79d9eec0b8
commit
10d81944b7
|
@ -1,12 +1,12 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
|
|
||||||
project(logmeow CXX)
|
|
||||||
|
|
||||||
# TODO don't hardcode compilers and linker
|
# TODO don't hardcode compilers and linker
|
||||||
set(CMAKE_C_COMPILER "clang")
|
set(CMAKE_C_COMPILER "clang")
|
||||||
set(CMAKE_CXX_COMPILER "clang++")
|
set(CMAKE_CXX_COMPILER "clang++")
|
||||||
add_link_options(-fuse-ld=lld)
|
add_link_options(-fuse-ld=lld)
|
||||||
|
|
||||||
|
project(logmeow CXX)
|
||||||
|
|
||||||
## ---------------------------------------------------------------------
|
## ---------------------------------------------------------------------
|
||||||
## GENERIC BUILD FLAGS
|
## GENERIC BUILD FLAGS
|
||||||
## ---------------------------------------------------------------------
|
## ---------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue