From fe5728dcb006550651859bd471ab40990753201c Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Thu, 18 Feb 2021 15:55:45 +0100 Subject: [PATCH] cmake: using MD5_INFILE variable instead of ZephyrPackagePath.txt Running `west zephyr-export` creates an entry in the CMake User package registry. During this process, a temporary file `current_path.txt` is created. This commit ensure the file is removed when no longer needed. Signed-off-by: Torsten Rasmussen --- share/zephyr-package/cmake/zephyr_export.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/zephyr-package/cmake/zephyr_export.cmake b/share/zephyr-package/cmake/zephyr_export.cmake index ed652540ae3..a9493f683b8 100644 --- a/share/zephyr-package/cmake/zephyr_export.cmake +++ b/share/zephyr-package/cmake/zephyr_export.cmake @@ -34,4 +34,4 @@ else() message("~/.cmake/packages/Zephyr\n") endif() -file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/ZephyrPackagePath.txt) +file(REMOVE ${CMAKE_CURRENT_LIST_DIR}/${MD5_INFILE})