Set compilers and linker before project() call

This commit is contained in:
blankie 2023-02-15 21:09:57 +07:00
parent 79d9eec0b8
commit 10d81944b7
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 2 additions and 2 deletions

View File

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