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 <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2021-02-18 15:55:45 +01:00 committed by Carles Cufí
parent 148dbdc9fe
commit fe5728dcb0
1 changed files with 1 additions and 1 deletions

View File

@ -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})