CMake: disallow in-tree builds.
In-tree builds pollute the source directory and make version control more difficult to use effectively.
This commit is contained in:
parent
17943a51cb
commit
39d46395d0
@ -1,3 +1,7 @@
|
|||||||
|
if (CMAKE_BINARY_DIR STREQUAL CMAKE_SOURCE_DIR)
|
||||||
|
message(FATAL_ERROR "In-tree builds are not supported. Instead, run:\ncmake . -B build <options> && cmake --build build")
|
||||||
|
endif()
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(nextpnr CXX)
|
project(nextpnr CXX)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user