169 '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
170 '-DMPI_RUN_FLAGS:STRING=--allow-run-as-root',
171 '-DWITH_SPACK:BOOL=YES',
172 '-DPETSC_DIR:PATH=%s' % spec[
'petsc'].prefix,
173 '-DPETSC_ARCH:STRING=',
174 '-DMOAB_DIR:PATH=%s' % spec[
'moab'].prefix,
175 '-DBOOST_DIR:PATH=%s' % spec[
'boost'].prefix,
176 '-DBLAS_DIR:PATH=%s' % spec[
'blas'].prefix])
179 if '+adol-c' in spec:
180 options.append(
'-DADOL-C_DIR:PATH=%s' % spec[
'adol-c'].prefix)
182 if '+tetgen' in spec:
183 options.append(
'-DTETGEN_DIR:PATH=%s' % spec[
'tetgen'].prefix)
186 options.append(
'-DMED_DIR:PATH=%s' % spec[
'med'].prefix)
189 options.append(
'-DSLEPC_DIR:PATH=%s' % spec[
'slepc'].prefix)
192 options.append(
'-DMGIS_DIR:PATH=%s' % spec[
'mgis'].prefix)
193 options.append(
'-DTFEL_DIR:PATH=%s' % spec[
'tfel'].prefix)
197 self.define_from_variant(
198 'STAND_ALLONE_USERS_MODULES',
'copy_user_modules'))
201 self.define_from_variant(
'BUILD_SHARED_LIBS',
'shared'))
203 if spec[
'boost'].satisfies(
'+shared'):
204 options.append(self.define(
'Boost_USE_STATIC_LIBS',
False))
206 options.append(self.define(
'Boost_USE_STATIC_LIBS',
True))
209 self.define_from_variant(
'BUILD_TUTORIALS',
'build_tutorials'))