aboutsummaryrefslogtreecommitdiffstats
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-06-27 18:33:18 +0200
commita13e7b9ff0c9b4e499c08e37755949d3f544e7b7 (patch)
treedd04754596e93bf5aa2b64ab25264138295d58af /cmake
parent51026d2f67bfea01346daceb25c91809fb87c322 (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()