diff --git a/script/gitlabci/job_analysis.yml b/script/gitlabci/job_analysis.yml index 55f8a287a62..6191734f7ef 100644 --- a/script/gitlabci/job_analysis.yml +++ b/script/gitlabci/job_analysis.yml @@ -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 diff --git a/script/run_install.sh b/script/run_install.sh index a016eecd172..d5b80004d55 100755 --- a/script/run_install.sh +++ b/script/run_install.sh @@ -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 diff --git a/script/set_default_env_vars.sh b/script/set_default_env_vars.sh index 5d9feea57ac..50de13b68f6 100755 --- a/script/set_default_env_vars.sh +++ b/script/set_default_env_vars.sh @@ -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:=""} +