diff --git a/meshing/packages/magix3d/package.py b/meshing/packages/magix3d/package.py index a06df26..934b292 100644 --- a/meshing/packages/magix3d/package.py +++ b/meshing/packages/magix3d/package.py @@ -82,7 +82,7 @@ class Magix3d(CMakePackage): # setup PYTHON_PATH for documentation def setup_build_environment(self, env): - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): python_version = str(self.spec['python'].version).split('.') python_dir = "python" + python_version[0] + "." + python_version[1] @@ -119,7 +119,7 @@ def cmake_args(self): args.append('-DBUILD_MAGIX3D:BOOL=ON') args.append('-DBUILD_MAGIX3DBATCH:BOOL=OFF') - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): args.append('-DSPHINX_WARNINGS_AS_ERRORS=OFF') if self.spec['python'].version < Version('3'): diff --git a/meshing/packages/mgx/package.py b/meshing/packages/mgx/package.py index 669d893..a49e8d4 100644 --- a/meshing/packages/mgx/package.py +++ b/meshing/packages/mgx/package.py @@ -66,7 +66,7 @@ class Mgx(CMakePackage): depends_on("py-sphinx-copybutton", when="+doc") def setup_build_environment(self, env): - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): python_version = str(self.spec['python'].version).split('.') python_dir = "python" + python_version[0] + "." + python_version[1] @@ -93,7 +93,7 @@ def cmake_args(self): self.define('DKOC_LICENCE', 'unavailable') ] - if ('doc' in self.spec.variants): + if ('+doc' in self.spec.variants): args.append('-DSPHINX_WARNINGS_AS_ERRORS=OFF') if self.spec.satisfies('%intel'):