From 4b8533f50e66fa61aab097faf59632fcf6b1e044 Mon Sep 17 00:00:00 2001 From: shouren Date: Fri, 30 Aug 2024 11:28:29 +0800 Subject: [PATCH] fix(tools): CMake error install FILES given directory for tools/validation (#3975) --- CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7fc334f8566..091e493f384 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -329,7 +329,7 @@ message(STATUS "CMAKE_INSTALL_PREFIX: ${CMAKE_INSTALL_PREFIX}") FILE(GLOB OPENMLDB_BINS "${CMAKE_SOURCE_DIR}/release/bin/*") FILE(GLOB OPENMLDB_SBINS "${CMAKE_SOURCE_DIR}/release/sbin/*") FILE(GLOB OPENMLDB_CONFS "${CMAKE_SOURCE_DIR}/release/conf/*") -FILE(GLOB OPENMLDB_TOOLS "${CMAKE_SOURCE_DIR}/tools/*") +set(OPENMLDB_TOOLS "${CMAKE_SOURCE_DIR}/tools/") install( FILES ${OPENMLDB_BINS} @@ -343,8 +343,15 @@ install( ) install(FILES ${OPENMLDB_CONFS} DESTINATION conf) install( - FILES ${OPENMLDB_TOOLS} + DIRECTORY ${OPENMLDB_TOOLS} DESTINATION tools - PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ + FILE_PERMISSIONS + OWNER_READ OWNER_EXECUTE OWNER_WRITE + GROUP_READ GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE + DIRECTORY_PERMISSIONS + OWNER_READ OWNER_EXECUTE OWNER_WRITE + GROUP_READ GROUP_EXECUTE GROUP_WRITE + WORLD_READ WORLD_EXECUTE ) install(DIRECTORY DESTINATION udf)