Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI:check if CMAKE_INSTALL_PREFIX is set, if cmake --install is executed #2444

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions script/gitlabci/job_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ linux_clang-14_debug_analysis:
ALPAKA_CI_CLANG_VER: 14
ALPAKA_CI_STDLIB: libc++
CMAKE_BUILD_TYPE: Debug
CMAKE_INSTALL_PREFIX: ${CI_PROJECT_DIR}/_install
ALPAKA_BOOST_VERSION: 1.80.0
ALPAKA_CI_CMAKE_VER: 3.25.3
alpaka_CXX_STANDARD: 20
Expand Down
8 changes: 8 additions & 0 deletions script/run_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@
set +xv
source ./script/setup_utilities.sh

: "${CMAKE_INSTALL_PREFIX?'CMAKE_INSTALL_PREFIX must be specified, otherwise install folder is unspecified'}"

if [ "$CMAKE_INSTALL_PREFIX" = "" ]; then
echo_red "ERROR: CMAKE_INSTALL_PREFIX is empty"
exit 1
fi

echo_green "<SCRIPT: run_install>"

ALPAKA_CI_CMAKE_EXECUTABLE=cmake
if [ "$ALPAKA_CI_OS_NAME" = "Linux" ]
then
: "${ALPAKA_CI_CMAKE_DIR?'ALPAKA_CI_CMAKE_DIR must be specified'}"
ALPAKA_CI_CMAKE_EXECUTABLE="${ALPAKA_CI_CMAKE_DIR}/bin/cmake"
fi

Expand Down
2 changes: 2 additions & 0 deletions script/set_default_env_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
# set default values for unset environment variables

export CMAKE_CXX_EXTENSIONS=${CMAKE_CXX_EXTENSIONS:="ON"}
export CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX:=""}