From: Kefu Chai Date: Sat, 10 Jul 2021 13:26:57 +0000 (+0800) Subject: cmake: use PATTERN instead of REGEX to exclude installed files X-Git-Tag: v17.1.0~1313^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=a4d654b9c0f97003b5c9ca84b4ebf4637add129e;p=ceph.git cmake: use PATTERN instead of REGEX to exclude installed files for better readability Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/CMakeLists.txt b/src/pybind/mgr/CMakeLists.txt index 0852adb79e64c..fd629880697e4 100644 --- a/src/pybind/mgr/CMakeLists.txt +++ b/src/pybind/mgr/CMakeLists.txt @@ -1,10 +1,10 @@ set(mgr_module_install_excludes - REGEX "CMakeLists.txt" EXCLUDE - REGEX "\\.gitignore" EXCLUDE - REGEX "tox.ini" EXCLUDE - REGEX "requirements.*\.txt" EXCLUDE - REGEX "constraints.*\.txt" EXCLUDE - REGEX "tests/.*" EXCLUDE) + PATTERN "CMakeLists.txt" EXCLUDE + PATTERN ".gitignore" EXCLUDE + PATTERN "tox.ini" EXCLUDE + PATTERN "requirements*.txt" EXCLUDE + PATTERN "constraints*.txt" EXCLUDE + PATTERN "tests/*" EXCLUDE) if(WITH_MGR_DASHBOARD_FRONTEND) add_subdirectory(dashboard) @@ -13,13 +13,9 @@ endif() install(DIRECTORY dashboard DESTINATION ${CEPH_INSTALL_DATADIR}/mgr ${mgr_module_install_excludes} - REGEX "node_modules" EXCLUDE REGEX "cypress.*" EXCLUDE - REGEX "\.coveragerc" EXCLUDE - REGEX "\.editorconfig" EXCLUDE - REGEX "\..*lintrc" EXCLUDE - REGEX "\.browserslistrc" EXCLUDE - REGEX "\.prettier*" EXCLUDE) + PATTERN "frontend/node_modules" EXCLUDE + PATTERN ".*" EXCLUDE) if(WITH_MGR_ROOK_CLIENT) add_subdirectory(rook)