Skip to content

Commit

Permalink
Lagom: Set project() right away
Browse files Browse the repository at this point in the history
Checking CMAKE_CXX_COMPILER_ID before project() does not work.
  • Loading branch information
rburchell authored and awesomekling committed Jul 30, 2019
1 parent 0f3d191 commit ae231cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Lagom/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
cmake_minimum_required (VERSION 3.0)
project (Lagom)

set(CMAKE_CXX_FLAGS "-O2 -Wall -Wextra -Werror -std=c++17 -fPIC")

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

Expand Down

0 comments on commit ae231cf

Please sign in to comment.