Skip to content

Commit

Permalink
fix(tools): CMake error install FILES given directory for tools/valid…
Browse files Browse the repository at this point in the history
…ation (4paradigm#3975)
  • Loading branch information
shouren authored and Shouren committed Aug 30, 2024
1 parent 57adebf commit 4b8533f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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)

0 comments on commit 4b8533f

Please sign in to comment.