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

cmake: disallow in-source builds

parent 54bfed1b
No related branches found
No related tags found
No related merge requests found
cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
if("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
message(FATAL_ERROR "In-source builds are blocked. Please build from a separate directory.")
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