Project cmake file have precedence on home & sys
authorRomain Forlot <romain.forlot@iot.bzh>
Fri, 21 Jul 2017 08:51:49 +0000 (10:51 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Fri, 21 Jul 2017 13:07:28 +0000 (15:07 +0200)
Change-Id: Ied2c6e3c7f378b27a84229999b84dfc649a4e657
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
cmake/common.cmake

index 19ee6eb..4e34fcd 100644 (file)
@@ -31,7 +31,7 @@ list(SORT home_cmakefiles)
 file(GLOB system_cmakefiles /etc/app-templates/cmake.d/[0-9][0-9]-*.cmake)
 list(SORT system_cmakefiles)
 
-foreach(file ${project_cmakefiles} ${home_cmakefiles} ${system_cmakefiles})
+foreach(file ${system_cmakefiles} ${home_cmakefiles} ${project_cmakefiles})
        message(STATUS "Include: ${file}")
        include(${file})
 endforeach()