summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-06-27 18:33:18 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:48 +0200
commitb4d4054ca5528dca030de75d2cf73b1984883ce7 (patch)
treea1934a92551122858f0b351a193a3e57c9e29789 /cmake
parent328dc030125ea5f644dea587a3164708654142b6 (diff)
Disable the in-tree build method.
In-tree build could lead to problems and is not recommended because only one-setup, generated files spread over the project tree, clean is a pain in the ass and it just trash completely your git repo... Bug-AGL: SPEC-1534 Change-Id: I68cfd0e03933d87db7f6b2bdb88f22ddd94c2b98 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/common.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index 02ef1a4..65285a1 100644
--- a/cmake/common.cmake
+++ b/cmake/common.cmake
@@ -85,6 +85,8 @@ foreach(file ${system_cmakefiles} ${home_cmakefiles} ${project_cmakefiles})
include(${file})
endforeach()
+prevent_in_source_build()
+
if(DEFINED PROJECT_SRC_DIR_PATTERN)
project_subdirs_add(${PROJECT_SRC_DIR_PATTERN})
else()