1
Fork 0
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:
Robin Burchell 2019-07-30 15:27:10 +02:00 committed by Andreas Kling
parent 0f3d191a70
commit ae231cfe3d

View file

@ -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")