add debug variant for paraview (#22900)
* add debug variant for paraview * add advanced_debug variant to set optionnal debug flags Co-authored-by: Billae <eloise.billae@gmail.com>
This commit is contained in:
parent
c144222d54
commit
8fce9bef7b
@ -55,6 +55,7 @@ class Paraview(CMakePackage, CudaPackage):
|
|||||||
values=('native', 'fermi', 'kepler', 'maxwell',
|
values=('native', 'fermi', 'kepler', 'maxwell',
|
||||||
'pascal', 'volta', 'turing', 'ampere', 'all', 'none'),
|
'pascal', 'volta', 'turing', 'ampere', 'all', 'none'),
|
||||||
description='CUDA architecture')
|
description='CUDA architecture')
|
||||||
|
variant('advanced_debug', default=False, description="Enable all other debug flags beside build_type, such as VTK_DEBUG_LEAK")
|
||||||
|
|
||||||
conflicts('+python', when='+python3')
|
conflicts('+python', when='+python3')
|
||||||
# Python 2 support dropped with 5.9.0
|
# Python 2 support dropped with 5.9.0
|
||||||
@ -397,4 +398,7 @@ def nvariant_bool(feature):
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if '+advanced_debug' in spec:
|
||||||
|
cmake_args.append('-DVTK_DEBUG_LEAKS:BOOL=ON')
|
||||||
|
|
||||||
return cmake_args
|
return cmake_args
|
||||||
|
Loading…
Reference in New Issue
Block a user