Skip to content
Snippets Groups Projects
Commit 2f52a5d3 authored by Eidolon's avatar Eidolon
Browse files

Added a fatal error message when attempting an in-source build.

In-source builds are pain and suffering and I am going to stop people
from doing them to save them that pain.
parent c43b41e1
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,10 @@ project(SRB2
VERSION 2.1.14
LANGUAGES C)
if(${PROJECT_SOURCE_DIR} MATCHES ${PROJECT_BINARY_DIR})
message(FATAL_ERROR "In-source builds will bring you a world of pain. Please make a separate directory to invoke CMake from.")
endif()
# Set up CMAKE path
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment