From: Romain Forlot Date: Wed, 27 Jun 2018 16:33:18 +0000 (+0200) Subject: Disable the in-tree build method. X-Git-Tag: 5.99.1~1 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=a13e7b9ff0c9b4e499c08e37755949d3f544e7b7;hp=51026d2f67bfea01346daceb25c91809fb87c322;p=apps%2Fapp-templates.git 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 --- 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()