Skip to content

Commit

Permalink
CMake: Disallow builds in the source tree
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 8, 2015
1 parent 48c60c2 commit 3d3832e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doomsday/cmake/Config.cmake
Expand Up @@ -12,6 +12,10 @@ endmacro (set_path)

# Project Options & Paths ----------------------------------------------------

if (PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
message (FATAL_ERROR "In-source builds are not allowed. Please create a build directory and run CMake from there.")
endif ()

set_path (DENG_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/..")
set (DENG_CMAKE_DIR "${CMAKE_CURRENT_LIST_DIR}")
if (APPLE OR WIN32)
Expand Down

0 comments on commit 3d3832e

Please sign in to comment.