]> https://gitweb.dealii.org/ - candi.git/commitdiff
Option whether to build dealii examples 173/head
authorFabian Castelli <fabian.castelli@kit.edu>
Wed, 19 May 2021 14:30:48 +0000 (16:30 +0200)
committerFabian Castelli <fabian.castelli@kit.edu>
Wed, 19 May 2021 14:30:48 +0000 (16:30 +0200)
candi.cfg
deal.II-toolchain/packages/dealii.package

index 3d9303e14639f4fc55a9bdcce7de28f6a86f01d7..449b080e8509aef2cf5bc754bb3f72896eb9dcc3 100644 (file)
--- 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:
index c0c4db6d4e4a3a30c00a94f5c7eca8b6c3d119fc..54991a9e5db75bde3949dc334c173022270a33b1 100644 (file)
@@ -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'"

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.