From b4d4054ca5528dca030de75d2cf73b1984883ce7 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 27 Jun 2018 18:33:18 +0200 Subject: 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 --- cmake/common.cmake | 2 ++ 1 file changed, 2 insertions(+) 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() -- cgit 1.2.3-korg