rdma-core bugfix: help CMake find Python dependency (#22891)

This commit is contained in:
Tamara Dahlgren 2021-04-13 14:48:20 -07:00 committed by GitHub
parent 1379bcf680
commit 0618b43847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,11 @@ class RdmaCore(CMakePackage):
# system path) as a component in compile-time static strings such as # system path) as a component in compile-time static strings such as
# IBACM_SERVER_PATH. # IBACM_SERVER_PATH.
def cmake_args(self): def cmake_args(self):
cmake_args = ["-DCMAKE_INSTALL_SYSCONFDIR=" + cmake_args = [
self.spec.prefix.etc, '-DCMAKE_INSTALL_SYSCONFDIR={0}'.format(self.spec.prefix.etc),
"-DCMAKE_INSTALL_RUNDIR=/var/run"] '-DCMAKE_INSTALL_RUNDIR=/var/run',
'-DPYTHON_LIBRARY={0}'.format(self.spec['python'].libs[0]),
'-DPYTHON_INCLUDE_DIR={0}'
.format(self.spec['python'].headers.directories[0])
]
return cmake_args return cmake_args