mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Lagom: Set project() right away
Checking CMAKE_CXX_COMPILER_ID before project() does not work.
This commit is contained in:
parent
0f3d191a70
commit
ae231cfe3d
1 changed files with 1 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
|||
cmake_minimum_required (VERSION 3.0)
|
||||
project (Lagom)
|
||||
|
||||
set(CMAKE_CXX_FLAGS "-O2 -Wall -Wextra -Werror -std=c++17 -fPIC")
|
||||
|
||||
|
@ -8,8 +9,6 @@ elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
|||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-expansion-to-defined")
|
||||
endif()
|
||||
|
||||
project (Lagom)
|
||||
|
||||
file(GLOB AK_SOURCES "../AK/*.cpp")
|
||||
file(GLOB LIBCORE_SOURCES "../Libraries/LibCore/*.cpp")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue