summaryrefslogtreecommitdiffstats
path: root/cmake/prelude.cmake
blob: c37d590e05a2197d52fd620086a033a875c296e3 (plain)
1
2
3
4
5
6
7
8
9
10
# ---- In-source guard ----

if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
  message(
      FATAL_ERROR
      "In-source builds are not supported. "
      "Please read the BUILDING document before trying to build this project. "
      "You may need to delete 'CMakeCache.txt' and 'CMakeFiles/' first."
  )
endif()