From: Fabian Castelli Date: Wed, 19 May 2021 14:30:48 +0000 (+0200) Subject: Option whether to build dealii examples X-Git-Tag: v9.3.0-r3~22^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F173%2Fhead;p=candi.git Option whether to build dealii examples --- diff --git a/candi.cfg b/candi.cfg index 3d9303e..449b080 100644 --- a/candi.cfg +++ b/candi.cfg @@ -31,6 +31,9 @@ DEAL_CONFOPTS="" # enable machine-specific optimizations (implies -march=native etc.)? #NATIVE_OPTIMIZATIONS=true +# enable building of dealii examples +BUILD_EXAMPLES=true + # Choose the python interpreter to use. We pick python2, python3, # python in that order by default. If you want to override this # choice, uncomment the following: diff --git a/deal.II-toolchain/packages/dealii.package b/deal.II-toolchain/packages/dealii.package index c0c4db6..54991a9 100644 --- a/deal.II-toolchain/packages/dealii.package +++ b/deal.II-toolchain/packages/dealii.package @@ -26,6 +26,18 @@ CONFOPTS=" \ -D DEAL_II_FORCE_BUNDLED_BOOST:BOOL=OFF \ -D DEAL_II_WITH_ZLIB:BOOL=ON" +# Choice of whether to build the dealii examples +if [ "${BUILD_EXAMPLES}" = "true" ]; then + CONFOPTS="${CONFOPTS} \ + -D DEAL_II_COMPONENT_EXAMPLES:BOOL=ON" +elif [ "${BUILD_EXAMPLES}" = "false" ]; then + CONFOPTS="${CONFOPTS} \ + -D DEAL_II_COMPONENT_EXAMPLES:BOOL=OFF" +else + cecho ${BAD} "candi: bad variable: BUILD_EXAMPLES={false|true}; (your specified option is = ${BUILD_EXAMPLES})" + exit 1 +fi + if [ "${NATIVE_OPTIMIZATIONS}" = "true" ]; then CONFOPTS="${CONFOPTS} \ -D CMAKE_CXX_FLAGS='-march=native'"