summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2022-06-27 23:06:09 -0700
committerGitHub <noreply@github.com>2022-06-28 00:06:09 -0600
commit63b33403dbed3caf787161dc985f798c984edeea (patch)
tree9e5edcb4961b354ab7ccc310ebe6c11fb0c710c1
parent6a5bec8d4304521010c01e9f2638393745b7add4 (diff)
downloadspack-63b33403dbed3caf787161dc985f798c984edeea.tar.gz
spack-63b33403dbed3caf787161dc985f798c984edeea.tar.bz2
spack-63b33403dbed3caf787161dc985f798c984edeea.tar.xz
spack-63b33403dbed3caf787161dc985f798c984edeea.zip
kealib: add command property (#31295)
* kealib: add command property * Correct exe name on Windows
-rw-r--r--var/spack/repos/builtin/packages/kealib/package.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kealib/package.py b/var/spack/repos/builtin/packages/kealib/package.py
index e2ad87916e..1d6b13c216 100644
--- a/var/spack/repos/builtin/packages/kealib/package.py
+++ b/var/spack/repos/builtin/packages/kealib/package.py
@@ -42,6 +42,13 @@ class Kealib(CMakePackage):
patch('cmake.patch', when='@1.4.7')
@property
+ def command(self):
+ exe = 'kea-config'
+ if self.spec.satisfies('platform=windows'):
+ exe += '.bat'
+ return Executable(self.prefix.bin.join(exe))
+
+ @property
def root_cmakelists_dir(self):
if self.version >= Version('1.4.9'):
return '.'