You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
chore(packaging): add requires of snappy, ps awk and jemalloc required
This commit is contained in:
33
cmake/cpack_manage.cmake
Normal file
33
cmake/cpack_manage.cmake
Normal file
@ -0,0 +1,33 @@
|
||||
macro(columnstore_append_for_cpack var_name)
|
||||
# Get current value from parent scope or use empty string
|
||||
if(DEFINED ${var_name})
|
||||
set(current_val "${${var_name}}")
|
||||
else()
|
||||
set(current_val "")
|
||||
endif()
|
||||
|
||||
# Process each argument to append
|
||||
foreach(arg IN LISTS ARGN)
|
||||
if(current_val)
|
||||
# If not empty, add comma before new item
|
||||
set(current_val "${current_val}, ${arg}")
|
||||
else()
|
||||
# If empty, just add the item
|
||||
set(current_val "${arg}")
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
# Set back in parent scope
|
||||
set(${var_name}
|
||||
"${current_val}"
|
||||
PARENT_SCOPE
|
||||
)
|
||||
endmacro()
|
||||
|
||||
macro(columnstore_add_rpm_deps)
|
||||
columnstore_append_for_cpack(CPACK_RPM_columnstore-engine_PACKAGE_REQUIRES ${ARGN})
|
||||
endmacro()
|
||||
|
||||
if(RPM)
|
||||
columnstore_add_rpm_deps("snappy" "jemalloc" "procps-ng" "gawk")
|
||||
endif()
|
Reference in New Issue
Block a user