Commit 83b28dc7 authored by Dennis Gläser's avatar Dennis Gläser
Browse files

[ci][builddoc] fix build doc script

parent 245312b9
......@@ -2,8 +2,30 @@
echo "Compiling doxygen documentation"
# set default compiler settings
C_COMPILER=gcc
OCC_VERSION=7.3
COMPILER_VERSION=7
# maybe overwrite defaults
if [ "${CI_COMPILER}" ]; then C_COMPILER="${CI_COMPILER}"; fi
if [ "${CI_COMPILER_VERSION}" ]; then COMPILER_VERSION="${CI_COMPILER_VERSION}"; fi
if [ "${C_COMPILER}" == "gcc" ]; then CXX_COMPILER="g++";
elif [ "${C_COMPILER}" == "clang" ]; then CXX_COMPILER="clang++";
else
echo "Unsupported compiler specification. Aborting."
exit 1
fi
if [ "${CI_OCC_VERSION}" ]; then OCC_VERSION="${CI_OCC_VERSION}"; fi
OCC_INSTALL_DIR="/home/opencascade-${OCC_VERSION}/install"
# create build directory & configure
mkdir build && cd build && cmake ../
mkdir build && cd build
cmake -DCMAKE_C_COMPILER="${C_COMPILER}-${COMPILER_VERSION}" \
-DCMAKE_CXX_COMPILER="${CXX_COMPILER}-${COMPILER_VERSION}" \
-DOCC_INSTALL_DIR="${OCC_INSTALL_DIR}" ../
# build docu
make doc_doxygen
Supports Markdown
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