rdma-core bugfix: help CMake find Python dependency (#22891)
This commit is contained in:
parent
1379bcf680
commit
0618b43847
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue