]> https://gitweb.dealii.org/ - candi.git/commitdiff
disable CXX/CC for deal.II itself 159/head
authorTimo Heister <timo.heister@gmail.com>
Wed, 6 Jan 2021 20:34:47 +0000 (15:34 -0500)
committerTimo Heister <timo.heister@gmail.com>
Fri, 18 Jun 2021 01:57:47 +0000 (21:57 -0400)
As described in the comment, it is not ideal to set CXX/CC.

deal.II-toolchain/packages/dealii.package

index c0c4db6d4e4a3a30c00a94f5c7eca8b6c3d119fc..3db2b357bfa445df9e8a28342c10c98f7b74cd16 100644 (file)
@@ -10,7 +10,7 @@ BUILDDIR=${BUILD_PATH}/deal.II-${VERSION}
 INSTALL_PATH=${ORIG_INSTALL_PATH}/deal.II-${VERSION}
 
 ################################################################################
-# Please do not change the line below!
+# Please do not change the lines below!
 
 ################################################################################
 #Choose general configuration and components of deal.II
@@ -18,6 +18,8 @@ INSTALL_PATH=${ORIG_INSTALL_PATH}/deal.II-${VERSION}
 CONFOPTS=" \
 -D CMAKE_BUILD_TYPE=DebugRelease \
 -D DEAL_II_WITH_MPI:BOOL=ON \
+-D MPI_CXX_COMPILER=${CXX} \
+-D MPI_C_COMPILER=${CC} \
 -D DEAL_II_COMPONENT_DOCUMENTATION:BOOL=OFF \
 -D DEAL_II_WITH_LAPACK:BOOL=ON \
 -D DEAL_II_WITH_UMFPACK:BOOL=ON \
@@ -35,6 +37,11 @@ fi
 CONFOPTS="${CONFOPTS} \
 ${DEAL_CONFOPTS}"
 
+# Disable CXX, CC for deal.II as recommended in
+# https://github.com/dealii/dealii/issues/11478 . Note the we are
+# setting the MPI_*_COMPILER cmake variables above.
+unset CXX
+unset CC
 
 ################################################################################
 # Check if we hit cmake-3.10+ and deal.II v8.5.1 configure error (MPI / FindMPI)

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.