Skip to content

Commit

Permalink
ci: Prevent in-tree builds
Browse files Browse the repository at this point in the history
You will have to provide a build directory outside the amiberry sources, to keep things clean
  • Loading branch information
midwan committed Sep 25, 2024
1 parent a796a68 commit b4ff4a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
cmake_minimum_required(VERSION 3.16)
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
message(FATAL_ERROR "Prevented in-tree build. Please create a build directory outside of the amiberry source code and run \"cmake -S ${CMAKE_SOURCE_DIR} -B .\" from there")
endif ()
project(amiberry-lite VERSION 5.7.5)
enable_language(C CXX ASM)

Expand Down

0 comments on commit b4ff4a4

Please sign in to comment.