cmake: Moved the creation of the nxtmpdir folder to the root CMake file

- Moved the creation of the `nxtmpdir` folder for third-party packages to the root  `CMakeLists.txt` file.

cmake/nuttx_3rdparty.cmake

- Add the nuttx_remove_nxtmpdir function to remove the third-party cache directory under nuttx/../nxtmpdir

Signed-off-by: simbit18 <simbit18@gmail.com>
This commit is contained in:
simbit18
2026-04-16 14:30:03 +02:00
committed by Lup Yuen Lee
parent 9035fba275
commit b37b22eacd
3 changed files with 25 additions and 2 deletions
+15
View File
@@ -40,6 +40,21 @@ function(nuttx_make_nxtmpdir)
endif()
endfunction()
# ~~~
# nuttx_remove_nxtmpdir
#
# Description:
# Remove the third-party cache directory under nuttx/../nxtmpdir
#
# ~~~
function(nuttx_remove_nxtmpdir)
set(_nxtmpdir "${NUTTX_DIR}/../nxtmpdir")
if(EXISTS "${_nxtmpdir}")
file(REMOVE_RECURSE "${_nxtmpdir}")
endif()
endfunction()
# ~~~
# nuttx_check_git_hash
#