Commit 8f28fee9 authored by gsell's avatar gsell

force building cmake with gcc on macOS if OTB_TOOLSET is gcc

if not forced cmake uses clang on macOS even if cc is GCC
parent ce50ca41
......@@ -30,6 +30,10 @@ tar xvf "${SRC_FILE}" || exit ${OTB_ERR_UNTAR}
# You might have to add the option --system-curl
mkdir -p "${OTB_SRC_DIR}/$P/build" && cd "$_" || exit ${OTB_ERR_SYSTEM}
if [[ "${OTB_TOOLSET}" == "gcc" ]]; then
export CC="$(which gcc)"
export CXX="$(which g++)"
"${OTB_SRC_DIR}/cmake/cmake-$V/bootstrap" \
--prefix="${OTB_PREFIX}" \
--verbose || exit ${OTB_ERR_CONFIGURE}
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