Skip to content

Commit

Permalink
Build SCE by default for RHEL 9 and 10
Browse files Browse the repository at this point in the history
Change the `build_product` convenient script so that it will
build SCE by default for the `rhel9` and `rhel10` product.
  • Loading branch information
jan-cerny committed Oct 11, 2024
1 parent e0df0c6 commit c28dc72
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build_product
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,13 @@ set_no_derivatives_options() {
fi
}

set_sce_options() {
grep -q "SSG_SCE_ENABLED" <<< "$ADDITIONAL_CMAKE_OPTIONS" && return
if grep -q 'rhel9\|rhel10' <<< "${_arg_product[*]}"; then
CMAKE_OPTIONS+=("-DSSG_SCE_ENABLED:BOOL=ON")
fi
}

set_explict_build_targets() {
if test "$_arg_datastream_only" = on || test "$_arg_thin_datastream" = on || test "$_arg_rule_id" != off ; then
for chosen_product in "${_arg_product[@]}"; do
Expand Down Expand Up @@ -429,6 +436,7 @@ done

CMAKE_OPTIONS=(${ADDITIONAL_CMAKE_OPTIONS} "${build_type_option}" "${oval_major_version_option}" "${oval_minor_version_option}" '-DSSG_PRODUCT_DEFAULT=OFF' "${cmake_enable_args[@]}" -G "$cmake_generator")
set_no_derivatives_options
set_sce_options
if [ "$_arg_ansible_playbooks" = off ] ; then
CMAKE_OPTIONS+=("-DSSG_ANSIBLE_PLAYBOOKS_ENABLED:BOOL=OFF")
fi
Expand Down

0 comments on commit c28dc72

Please sign in to comment.