trilinos: disable optional packages by default (#26815)

This commit is contained in:
Seth R. Johnson 2021-11-08 08:29:35 -05:00 committed by GitHub
parent c384ac88a0
commit 18d506c7fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -295,6 +295,7 @@ class Trilinos(CMakePackage, CudaPackage):
depends_on('hypre~internal-superlu~int64', when='+hypre')
depends_on('kokkos-nvcc-wrapper', when='+wrapper')
depends_on('lapack')
# depends_on('perl', type=('build',)) # TriBITS finds but doesn't use...
depends_on('libx11', when='+x11')
depends_on('matio', when='+exodus')
depends_on('metis', when='+zoltan')
@ -438,20 +439,18 @@ def define_enable(suffix, value=None):
options.extend([
define('Trilinos_VERBOSE_CONFIGURE', False),
define_from_variant('BUILD_SHARED_LIBS', 'shared'),
define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"),
define_trilinos_enable('TESTS', False),
define_trilinos_enable('EXAMPLES', False),
define_from_variant('CMAKE_CXX_STANDARD', 'cxxstd'),
define_trilinos_enable('ALL_OPTIONAL_PACKAGES', False),
define_trilinos_enable('ALL_PACKAGES', False),
define_trilinos_enable('CXX11', True),
define_trilinos_enable('DEBUG', 'debug'),
define_trilinos_enable('EXAMPLES', False),
define_trilinos_enable('SECONDARY_TESTED_CODE', True),
define_trilinos_enable('TESTS', False),
define_trilinos_enable('Fortran'),
define_trilinos_enable('OpenMP'),
define_trilinos_enable('EXPLICIT_INSTANTIATION',
'explicit_template_instantiation')
# The following can cause problems on systems that don't have
# static libraries available for things like dl and pthreads
# for example when trying to build static libs
# define_from_variant('TPL_FIND_SHARED_LIBS', 'shared')
# define('Trilinos_LINK_SEARCH_START_STATIC', '+shared' not in spec)
])
# ################## Trilinos Packages #####################