From b27230551b0db1025f487f37826e9f86bc1eb4ad Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 5 Apr 2021 22:31:12 +0800 Subject: [PATCH] cmake: remove created directory when "clean" target is run Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pybind/mgr/dashboard/CMakeLists.txt b/src/pybind/mgr/dashboard/CMakeLists.txt index 59c28a33f6e..e332932d560 100644 --- a/src/pybind/mgr/dashboard/CMakeLists.txt +++ b/src/pybind/mgr/dashboard/CMakeLists.txt @@ -15,6 +15,8 @@ function(add_npm_command) DEPENDS ${NC_DEPENDS} WORKING_DIRECTORY "${NC_WORKING_DIRECTORY}" COMMENT ${NC_COMMENT}) + set_property(DIRECTORY APPEND + PROPERTY ADDITIONAL_MAKE_CLEAN_FILES "${NC_OUTPUT}") endfunction(add_npm_command) function(add_npm_options) -- 2.47.3