Skip to content

Commit

Permalink
Merge pull request #304 from pmienk/master
Browse files Browse the repository at this point in the history
Alter installation to provide BOOST_ROOT environment variable assignment.
  • Loading branch information
pmienk authored Oct 5, 2023
2 parents 8b3e7d8 + a3f4849 commit b1925f3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
12 changes: 9 additions & 3 deletions templates/gsl.ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,12 @@ endfunction # get_sln_tests
. define my.config = emit_step_display_environment.configuration
. define my.repository = emit_step_display_environment.repository
.
- name: Display Compiler details
shell: bash
run: |
${CC} -v
${CXX} -v
- name: Display CPU details
if: ${{ (runner.os == 'Linux') }}
shell: bash
Expand Down Expand Up @@ -711,12 +717,12 @@ endfunction # get_sln_tests
- name: Execute install$(my.suffix)
run: >
./install$(my.suffix)
--build-dir=$LIBBITCOIN_SRC_PATH ${{ matrix.options }}
--build-dir=${{ env.LIBBITCOIN_SRC_PATH }} ${{ matrix.options }}
. if (defined(my.config.use_preset))
--prefix=$LIBBITCOIN_SRC_PATH/prefix/${{ matrix.preset }}
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix/${{ matrix.preset }}
--preset=${{ matrix.preset }}
. else
--prefix=$LIBBITCOIN_SRC_PATH/prefix
--prefix=${{ env.LIBBITCOIN_SRC_PATH }}prefix
. endif
${{ env.LINKAGE }}
${{ env.ASSERT_NDEBUG }}
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.install-cmake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ cmake_project_directory()
local PROJ_CONFIG_DIR
PROJ_CONFIG_DIR=\$(pwd)

cmake $@ builds/cmake
cmake -LA $@ builds/cmake
make_jobs "$JOBS"

if [[ $TEST == true ]]; then
Expand Down
2 changes: 1 addition & 1 deletion templates/gsl.install-cmakepresets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ cmake_project_directory()

push_directory "builds/cmake"
display_message "Preparing cmake --preset=$PRESET $@"
cmake --preset=$PRESET $@
cmake -LA --preset=$PRESET $@
popd

push_directory "obj/$PRESET"
Expand Down
11 changes: 6 additions & 5 deletions templates/shared/common_install_shell_artifacts.gsl
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ display_configuration()
. if (have_build(my.install, "boost"))
display_message "BUILD_BOOST : $BUILD_BOOST"
. endif
display_message "BOOST_ROOT : $BOOST_ROOT"
. custom_configuration(my.repository, my.install)
display_message "PREFIX : $PREFIX"
display_message "DISABLE_SHARED : $DISABLE_SHARED"
Expand Down Expand Up @@ -585,19 +586,19 @@ set_pkgconfigdir()
set_with_boost_prefix()
{
if [[ $BUILD_BOOST ]]; then
. if defined(my.configuration.cmake)
# Boost detection via FindBoost.cmake provides for path hint via
# $BOOT_ROOT environment variable only.
. else
# Boost has no pkg-config, m4 searches in the following order:
# --with-boost=<path>, /usr, /usr/local, /opt, /opt/local, $BOOST_ROOT.
# We use --with-boost to prioritize the --prefix path when we build it.
# Otherwise standard paths suffice for Linux, Homebrew and MacPorts.
# ax_boost_base.m4 appends /include and adds to BOOST_CPPFLAGS
# ax_boost_base.m4 searches for /lib /lib64 and adds to BOOST_LDFLAGS
. if defined(my.configuration.cmake)
#
# cmake does not process this argument, so it has been zeroed out.
with_boost=""
. else
with_boost="--with-boost=$PREFIX"
. endif
export BOOST_ROOT="$PREFIX"
fi
}

Expand Down

0 comments on commit b1925f3

Please sign in to comment.