Commit 6c7071f2 authored by gsell's avatar gsell

050-build-cmake: fixes

- doesn't compile with GCC without patches on macOS, so Clang must be
  used
- compile with --no-system-libs and parallel
parent 8f28fee9
......@@ -30,12 +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++)"
fi
"${OTB_SRC_DIR}/cmake/cmake-$V/bootstrap" \
--prefix="${OTB_PREFIX}" \
--no-system-libs \
--parallel=${NJOBS} \
--verbose || exit ${OTB_ERR_CONFIGURE}
#
# Compile and install CMake
......
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