From a7ece81ac8d8650eca0ee2f3dd7cc80b58174f55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucher?= <cfoucher@laas.fr> Date: Thu, 4 May 2023 13:55:38 +0200 Subject: [PATCH] Make sure modules are always in the same order for incremental compilation. Under Windows, it appeared that modules list was not always in the same order, causing full recompilation event when code wasn't modified. --- zephyr/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 609f039..6915e9c 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -7,6 +7,8 @@ MACRO(SUBDIRLIST result curdir) LIST(APPEND dirlist ${curdir}/${child}) ENDIF() ENDFOREACH() + # Make sure modules are always in the same order for incremental compilation + LIST(SORT dirlist) SET(${result} ${dirlist}) ENDMACRO() -- GitLab