From: Timo Heister Date: Wed, 6 Jan 2021 20:34:47 +0000 (-0500) Subject: disable CXX/CC for deal.II itself X-Git-Tag: v9.3.0-r3~10 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=525eff0a8c1c788659d1b77e4dce80b22d1f5813;p=candi.git disable CXX/CC for deal.II itself As described in the comment, it is not ideal to set CXX/CC. --- diff --git a/deal.II-toolchain/packages/dealii.package b/deal.II-toolchain/packages/dealii.package index 5b06381..00f2228 100644 --- a/deal.II-toolchain/packages/dealii.package +++ b/deal.II-toolchain/packages/dealii.package @@ -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 \ @@ -45,6 +47,11 @@ fi CONFOPTS="${CONFOPTS} \ ${DEAL_II_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)