mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
Lagom: Let's not hard-code the compiler. Add compiler-relevant flags though.
I'm still getting the hang of this CMake thing.
This commit is contained in:
parent
e423bb4901
commit
bacbb52f2e
1 changed files with 8 additions and 4 deletions
|
@ -1,8 +1,12 @@
|
|||
cmake_minimum_required (VERSION 2.6)
|
||||
cmake_minimum_required (VERSION 3.0)
|
||||
|
||||
set(CMAKE_C_COMPILER clang)
|
||||
set(CMAKE_CXX_COMPILER clang)
|
||||
set(CMAKE_CXX_FLAGS "-O2 -Wall -Wextra -Wconsumed -Werror -std=c++17 -fPIC")
|
||||
set(CMAKE_CXX_FLAGS "-O2 -Wall -Wextra -Werror -std=c++17 -fPIC")
|
||||
|
||||
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wconsumed")
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-expansion-to-defined")
|
||||
endif()
|
||||
|
||||
project (Lagom)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue