diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/libffs/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/libffs/package.py | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/libffs/package.py b/var/spack/repos/builtin/packages/libffs/package.py index 340e748bb6..3ebd03c600 100644 --- a/var/spack/repos/builtin/packages/libffs/package.py +++ b/var/spack/repos/builtin/packages/libffs/package.py @@ -38,16 +38,26 @@ class Libffs(CMakePackage): version('develop', git='https://github.com/GTkorvo/ffs.git', branch='master') + version('1.5', 'c41c5f5f448b627740deecd695b7bbf8') version('1.1.1', 'aa1c8ad5cf35e8cf76735e3a60891509') version('1.1', '561c6b3abc53e12b3c01192e8ef2ffbc') - depends_on('flex') - depends_on('bison') + depends_on('flex', type='build', when='@:1.4') + depends_on('bison', type='build', when='@:1.4') + depends_on('gtkorvo-cercs-env', type='build', when='@:1.4') depends_on('gtkorvo-atl') depends_on('gtkorvo-dill') - depends_on('gtkorvo-cercs-env') def cmake_args(self): - args = ["-DENABLE_TESTING=0", "-DTARGET_CNL=1", - "-DBUILD_SHARED_STATIC=STATIC"] + args = ["-DTARGET_CNL=1"] + if self.spec.satisfies('@1.5:'): + args.append("-DBUILD_SHARED_LIBS=OFF") + else: + args.append("-DENABLE_BUILD_STATIC=STATIC") + + if self.run_tests: + args.append('-DENABLE_TESTING=0') + else: + args.append('-DENABLE_TESTING=0') + return args |