mercury variant to control checksumming feature (#21467)

This commit is contained in:
Phil Carns 2021-02-07 06:26:49 -05:00 committed by GitHub
parent 121e55832a
commit b54e9b0b31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,8 @@ class Mercury(CMakePackage):
description='Enable udreg on supported Cray platforms')
variant('debug', default=False,
description='Enable Mercury to print debug output')
variant('checksum', default=True,
description='Checksum verify all request/response messages')
depends_on('cmake@2.8.12.2:', type='build')
# depends_on('cci', when='+cci') # TODO: add CCI package
@ -67,7 +69,7 @@ def cmake_args(self):
'-DBUILD_TESTING:BOOL=%s' % str(self.run_tests),
'-DMERCURY_ENABLE_PARALLEL_TESTING:BOOL=%s' % str(parallel_tests),
'-DMERCURY_USE_BOOST_PP:BOOL=ON',
'-DMERCURY_USE_CHECKSUMS:BOOL=ON',
'-DMERCURY_USE_CHECKSUMS:BOOL=%s' % variant_bool('+checksum'),
'-DMERCURY_USE_SYSTEM_MCHECKSUM:BOOL=OFF',
'-DMERCURY_USE_XDR:BOOL=OFF',
'-DNA_USE_BMI:BOOL=%s' % variant_bool('+bmi'),