From: Kefu Chai Date: Mon, 5 Apr 2021 14:31:12 +0000 (+0800) Subject: cmake: remove created directory when "clean" target is run X-Git-Tag: v17.1.0~2319^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F40596%2Fhead;p=ceph.git cmake: remove created directory when "clean" target is run Signed-off-by: Kefu Chai --- 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)