mirror of https://github.com/PCSX2/pcsx2.git
CMake: Prevent people from doing in-tree builds
Can create weird messes with include directories
This commit is contained in:
parent
f9f4557841
commit
6d0e35ddcb
|
@ -2,6 +2,10 @@
|
||||||
# versions as well, avoiding setting policies.
|
# versions as well, avoiding setting policies.
|
||||||
cmake_minimum_required(VERSION 3.11...3.22)
|
cmake_minimum_required(VERSION 3.11...3.22)
|
||||||
|
|
||||||
|
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||||
|
message(FATAL_ERROR "PCSX2 does not support in-tree builds. Please make a build directory that is not the PCSX2 source directory and generate your CMake project there using either `cmake -B build_directory` or by running cmake from the build directory.")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Project Name
|
# Project Name
|
||||||
project(Pcsx2)
|
project(Pcsx2)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue