From edfabf17cc87ac8079b47251fe2e8e76e17f9845 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 17 May 2021 12:54:16 +0800 Subject: [PATCH] cmake: do not specify subdirectories in file(GLOB_RECURSE..) file(GLOB_RECURSE..) does this already. Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/CMakeLists.txt | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/pybind/mgr/dashboard/CMakeLists.txt b/src/pybind/mgr/dashboard/CMakeLists.txt index 5d5e6d9560d..402c8afcca2 100644 --- a/src/pybind/mgr/dashboard/CMakeLists.txt +++ b/src/pybind/mgr/dashboard/CMakeLists.txt @@ -85,23 +85,11 @@ add_npm_command( ${nodeenv} ) -# Glob some frontend files. With CMake 3.6, this can be simplified -# to *.ts *.html. Just add: -# list(FILTER frontend_src INCLUDE REGEX "frontend/src") +# Glob some frontend files. file( GLOB_RECURSE frontend_src frontend/src/*.ts - frontend/src/*.html - frontend/src/*/*.ts - frontend/src/*/*.html - frontend/src/*/*/*.ts - frontend/src/*/*/*.html - frontend/src/*/*/*/*.ts - frontend/src/*/*/*/*.html - frontend/src/*/*/*/*/*.ts - frontend/src/*/*/*/*/*.html - frontend/src/*/*/*/*/*/*.ts - frontend/src/*/*/*/*/*/*.html) + frontend/src/*.html) # these files are generated during build list(REMOVE_ITEM frontend_src -- 2.39.5