# First set up environment, in this example,
# bull-intel.env.sh will:
# - source Intel compilers, associated Intel MPI
# - export CC, CXX and FC variables accordingly
# - export cmakeFlags variable for parallel compilation
source $HPCW_SOURCE_DIR/toolchains/bull/bull-intel.env.sh
mkdir build_icon
cd build_icon
# In this example, all the 'cmakeFlags' defined in 'bull-intel.cmake' will be used.
# Note also that the variables set in the command line override the ones set in CMakeLists
# and the ones set in the 'bull-intel.cmake' when CACHE attribure is used.
cmake $cmakeFlags -DCMAKE_TOOLCHAIN_FILE=$HPCW_SOURCE_DIR/toolchains/bull/bull-intel.cmake -DENABLE_icon=ON -DHPCW_JOB_LAUNCHER=/scratch_lustre_DDN7k/xraffine/escape2/hpcw/toolchains/bull-job-launcher.sbatch $HPCW_SOURCE_DIR
make [VERBOSE=1]
ctest [-VV]
An equivalent call to the build wrapper would look as follows:
$HPCW_SOURCE_DIR/toolchains/build_wrapper.sh bull/bull-intel.env.sh --with=icon --test \
--cmake-flags="-DCMAKE_TOOLCHAIN_FILE=$HPCW_SOURCE_DIR/toolchains/bull/bull-intel.cmake -DHPCW_JOB_LAUNCHER=/scratch_lustre_DDN7k/xraffine/escape2/hpcw/toolchains/bull-job-launcher.sbatch"