Skip to content

Commit 03c5443

Browse files
committed
fix setup so enable/disable add-ons. otherwise would have to have --normally-disabled-add-on --no-normally-enabled-add-on. this way can have --normally-enabled-add-on off --normally-disabled-add-on on
1 parent c9fde95 commit 03c5443

File tree

1 file changed

+20
-16
lines changed

1 file changed

+20
-16
lines changed

setup

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def parse_input():
121121
default=False,
122122
help='enable SGI MPT [default: %(default)s]')
123123
group.add_argument('--omp',
124+
# at present, there's no way to turn this off. recc switch to on/off
124125
action='store_true',
125126
default=True,
126127
help='enable OpenMP [default: %(default)s]')
@@ -260,36 +261,39 @@ def parse_input():
260261
group = parser.add_argument_group('External quantum chemistry libraries')
261262
# ERD package
262263
group.add_argument('--erd',
263-
action='store_true',
264-
default=False,
264+
action='store',
265+
choices=('on', 'off'),
266+
default='off',
265267
help='Add support for the ERD integral package [default: %(default)s]')
266268
#JK_Factory
267269
group.add_argument('--jkfactory',
268-
action='store_true',
269-
default=False,
270+
action='store',
271+
choices=('on', 'off'),
272+
default='off',
270273
help='enable distributed J and K builds [default: %(default)s]')
271274
# GPU_DFCC package
272275
group.add_argument('--gpu-dfcc',
273-
action='store_true',
274-
default=False,
276+
action='store',
277+
choices=('on', 'off'),
278+
default='off',
275279
help='Enable GPU_DFCC external project [default: %(default)s]')
276280
# Dummy plugin
277281
group.add_argument('--dummy-plugin',
278-
action='store_true',
279-
default=False,
282+
action='store',
283+
choices=('on', 'off'),
284+
default='off',
280285
help='Enable dummy plugin external project [default: %(default)s]')
281286
# PCMSolver package
282287
group.add_argument('--pcmsolver',
283-
action='store_true',
284-
default=False,
288+
action='store',
289+
choices=('on', 'off'),
290+
default='off',
285291
help='Enable PCMSolver [default: %(default)s]')
286292
# CheMPS2 package
287293
group.add_argument('--chemps2',
288-
action='store_false',
289-
default=True,
290-
#action='store',
291-
#choices=('on', 'off'),
292-
#default='on',
294+
action='store',
295+
choices=('on', 'off'),
296+
default='on',
293297
help='Enable CheMPS2 external project [default: %(default)s]')
294298
group.add_argument('--chemps2-dir',
295299
action='store',
@@ -489,7 +493,7 @@ def gen_cmake_command(args):
489493
command += ' -DZLIB_ROOT={0}'.format(args.zlib_dir)
490494

491495
if args.gsl_dir:
492-
command += ' -DGSL_ROOT={0}'.format(args.gsl_dir)
496+
command += ' -DGSL_ROOT_DIR={0}'.format(args.gsl_dir)
493497

494498
if args.hdf5_dir:
495499
command += ' -DHDF5_ROOT={0}'.format(args.hdf5_dir)

0 commit comments

Comments
 (0)