kealib: add command property (#31295)

* kealib: add command property

* Correct exe name on Windows
This commit is contained in:
Adam J. Stewart 2022-06-27 23:06:09 -07:00 committed by GitHub
parent 6a5bec8d43
commit 63b33403db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,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'):