mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
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:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user