Skip to content
Snippets Groups Projects
Unverified Commit 45a67fa0 authored by ketsubouchi's avatar ketsubouchi Committed by GitHub
Browse files

dcmtk: fixed type error (#17758)


* dcmtk: fixed type error

* Update var/spack/repos/builtin/packages/dcmtk/package.py

Co-authored-by: default avatarAdam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: default avatarAdam J. Stewart <ajstewart426@gmail.com>
parent 32b070a7
Branches
Tags
No related merge requests found
...@@ -37,6 +37,16 @@ class Dcmtk(CMakePackage): ...@@ -37,6 +37,16 @@ class Dcmtk(CMakePackage):
variant('cxx11', default=False, description="Enable c++11 features") variant('cxx11', default=False, description="Enable c++11 features")
variant('stl', default=True, description="Use native STL implementation") variant('stl', default=True, description="Use native STL implementation")
def patch(self):
# Backport 3.6.4
if self.spec.satisfies('@:3.6.3 %fj'):
filter_file(
'OFintegral_constant<size_t,-1>',
'OFintegral_constant<size_t,~OFstatic_cast(size_t,0)>',
'ofstd/include/dcmtk/ofstd/variadic/helpers.h',
string=True
)
def cmake_args(self): def cmake_args(self):
args = ["-DDCMTK_WITH_OPENSSL={0}".format( args = ["-DDCMTK_WITH_OPENSSL={0}".format(
'ON' if '+ssl' in self.spec else 'OFF')] 'ON' if '+ssl' in self.spec else 'OFF')]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment