]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not specify subdirectories in file(GLOB_RECURSE..)
authorKefu Chai <kchai@redhat.com>
Mon, 17 May 2021 04:54:16 +0000 (12:54 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 17 May 2021 05:31:45 +0000 (13:31 +0800)
file(GLOB_RECURSE..) does this already.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/dashboard/CMakeLists.txt

index 5d5e6d9560dfa0a66114e36754d6d77f07013736..402c8afcca2efd00cb9e20b1f3fd322fc1c7f217 100644 (file)
@@ -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