Skip to content
Snippets Groups Projects
Commit fcf7f4c2 authored by lintao@ihep.ac.cn's avatar lintao@ihep.ac.cn
Browse files

Merge branch 'lintao/build/hint-to-users' into 'master'

Improve the build script.

See merge request cepc/CEPCSW!114
parents eb387908 1d616b88
No related branches found
No related tags found
No related merge requests found
# This variable will be used by GaudiToolbox.cmake to generate the cepcswenv.sh # This variable will be used by GaudiToolbox.cmake to generate the cepcswenv.sh
set(RUN_SCRIPT_EXTRA_COMMANDS "${RUN_SCRIPT_EXTRA_COMMANDS} set(RUN_SCRIPT_EXTRA_COMMANDS "${RUN_SCRIPT_EXTRA_COMMANDS}
export CEPCSW_ROOT=${CMAKE_SOURCE_DIR}
export DETCEPCV4ROOT=${CMAKE_SOURCE_DIR}/Detector/DetCEPCv4 CEPCSW_PROJECT_SOURCE_DIR=${CMAKE_SOURCE_DIR} # this is hardcode
export DETCRDROOT=${CMAKE_SOURCE_DIR}/Detector/DetCRD export CEPCSW_ROOT=\${CEPCSW_ROOT:-\${CEPCSW_PROJECT_SOURCE_DIR}} # allow user to override the default
export DETDRIFTCHAMBERROOT=${CMAKE_SOURCE_DIR}/Detector/DetDriftChamber
export DETCEPCV4ROOT=\${CEPCSW_ROOT}/Detector/DetCEPCv4
export DETCRDROOT=\${CEPCSW_ROOT}/Detector/DetCRD
export DETDRIFTCHAMBERROOT=\${CEPCSW_ROOT}/Detector/DetDriftChamber
") ")
...@@ -46,6 +46,7 @@ function setup-external() { ...@@ -46,6 +46,7 @@ function setup-external() {
function setup-install-area() { function setup-install-area() {
local installarea=$THISSCRITDIR/InstallArea local installarea=$THISSCRITDIR/InstallArea
if [ ! -d "$installarea" ]; then if [ ! -d "$installarea" ]; then
info: "The InstallArea is not created yet. Please run ./build.sh first, then source setup.sh again."
return return
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment