Commit 7f45360d authored by gsell's avatar gsell
Browse files

400-build-opal: disable AMR on macOS with Clang

parent f7335235
......@@ -23,13 +23,25 @@ tar xvf "${SRC_FILE}" || exit ${OTB_ERR_UNTAR}
# configure
mkdir -p "${OTB_SRC_DIR}/$P/build" && cd "$_" || exit ${OTB_ERR_SYSTEM}
LDFLAFS='-lrt -ldl' cmake \
# defaults
ENABLE_AMR=ON
ENABLE_AMR_MG_SOLVER=ON
# No Fortran on macOS with clang from Xcode
# :FIXME: in the future we might have flang!
if [[ "${OTB_TOOLSET}" == 'clang' ]] && [[ "${OTB_OS}" == 'macOS' ]]; then
ENABLE_AMR='OFF'
ENABLE_AMR_MG_SOLVER='OFF'
fi
cmake \
-DCMAKE_INSTALL_PREFIX="${OTB_PREFIX}" \
-DCMAKE_BUILD_TYPE=RELEASE \
-DUSE_STATIC_LIBRARIES=ON \
-DBUILD_OPAL_UNIT_TESTS=ON \
-DENABLE_AMR=ON \
-DENABLE_AMR_MG_SOLVER=ON \
-DENABLE_AMR=${ENABLE_AMR} \
-DENABLE_AMR_MG_SOLVER=${ENABLE_AMR_MG_SOLVER} \
-DENABLE_BANDRF=ON \
-DENABLE_IPPLTESTS=ON \
-DENABLE_OPAL_FEL=ON \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment