Lagom: Set project() right away
Checking CMAKE_CXX_COMPILER_ID before project() does not work.
This commit is contained in:
parent
0f3d191a70
commit
ae231cfe3d
Notes:
sideshowbarker
2024-07-19 12:59:18 +09:00
Author: https://github.com/rburchell Commit: https://github.com/SerenityOS/serenity/commit/ae231cfe3d7
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
Reference in a new issue