update scr package for cray (#6407)
* update scr package for cray * added info on scr version 1.2.0
This commit is contained in:
parent
f6ead27b5b
commit
acd80b16a8
@ -40,6 +40,8 @@ class Scr(CMakePackage):
|
|||||||
# url = "https://github.com/LLNL/scr/releases/download/v1.1.8/scr-1.1.8.tar.gz"
|
# url = "https://github.com/LLNL/scr/releases/download/v1.1.8/scr-1.1.8.tar.gz"
|
||||||
# version('1.1.8', '6a0f11ad18e27fcfc00a271ff587b06e')
|
# version('1.1.8', '6a0f11ad18e27fcfc00a271ff587b06e')
|
||||||
|
|
||||||
|
url = "https://github.com/LLNL/scr/archive/v1.2.0.tar.gz"
|
||||||
|
version('1.2.0', '060e9e9c7604c1765f3991f9cd6e9d2d')
|
||||||
version('master', git='https://github.com/llnl/scr.git', branch='master')
|
version('master', git='https://github.com/llnl/scr.git', branch='master')
|
||||||
|
|
||||||
depends_on('pdsh+static_modules', type=('build', 'run'))
|
depends_on('pdsh+static_modules', type=('build', 'run'))
|
||||||
@ -89,6 +91,8 @@ class Scr(CMakePackage):
|
|||||||
variant('cntl_base', default='/tmp',
|
variant('cntl_base', default='/tmp',
|
||||||
description='Compile time default location for control directory.')
|
description='Compile time default location for control directory.')
|
||||||
|
|
||||||
|
conflicts('platform=bgq')
|
||||||
|
|
||||||
def get_abs_path_rel_prefix(self, path):
|
def get_abs_path_rel_prefix(self, path):
|
||||||
# Return path if absolute, otherwise prepend prefix
|
# Return path if absolute, otherwise prepend prefix
|
||||||
if os.path.isabs(path):
|
if os.path.isabs(path):
|
||||||
@ -100,6 +104,9 @@ def cmake_args(self):
|
|||||||
spec = self.spec
|
spec = self.spec
|
||||||
args = []
|
args = []
|
||||||
|
|
||||||
|
if 'platform=cray' in spec:
|
||||||
|
args.append('-DSCR_LINK_STATIC=ON')
|
||||||
|
|
||||||
args.append('-DENABLE_FORTRAN={0}'.format('+fortran' in spec))
|
args.append('-DENABLE_FORTRAN={0}'.format('+fortran' in spec))
|
||||||
|
|
||||||
conf_path = self.get_abs_path_rel_prefix(
|
conf_path = self.get_abs_path_rel_prefix(
|
||||||
|
Loading…
Reference in New Issue
Block a user