Disable the in-tree build method. 43/14743/1
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 27 Jun 2018 16:33:18 +0000 (18:33 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 27 Jun 2018 16:33:18 +0000 (18:33 +0200)
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>
cmake/common.cmake

index 02ef1a4..65285a1 100644 (file)
@@ -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()