summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/cgns/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/cgns/package.py b/var/spack/repos/builtin/packages/cgns/package.py
index b0c2d8c6f5..9836d5fa44 100644
--- a/var/spack/repos/builtin/packages/cgns/package.py
+++ b/var/spack/repos/builtin/packages/cgns/package.py
@@ -3,6 +3,7 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+import sys
from spack import *
@@ -72,4 +73,10 @@ class Cgns(CMakePackage):
else:
options.extend(['-DCGNS_ENABLE_HDF5=OFF'])
+ if self.version <= Version('3.3.1'):
+ if sys.platform == 'darwin':
+ options.extend([
+ '-DCMAKE_MACOSX_RPATH:BOOL=ON'
+ ])
+
return options