aboutsummaryrefslogtreecommitdiff
path: root/src/backends/backends.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/backends.cmake')
-rw-r--r--src/backends/backends.cmake10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/backends/backends.cmake b/src/backends/backends.cmake
index f6f69bd11e..57f5a00015 100644
--- a/src/backends/backends.cmake
+++ b/src/backends/backends.cmake
@@ -11,8 +11,14 @@ list(APPEND armnnLibraries armnnBackendsCommon)
FILE(GLOB commonIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/common.cmake)
FILE(GLOB backendIncludes ${PROJECT_SOURCE_DIR}/src/backends/*/backend.cmake)
-# prefer to include common code first so backends can depend on them
-foreach(includeFile ${commonIncludes} ${backendIncludes})
+# prefer to include common code first
+foreach(includeFile ${commonIncludes})
+ message("Including backend common library into the build: ${includeFile}")
+ include(${includeFile})
+endforeach()
+
+# now backends can depend on common code included first
+foreach(includeFile ${backendIncludes})
message("Including backend into the build: ${includeFile}")
include(${includeFile})
endforeach()