diff options
author | Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> | 2021-04-13 14:48:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-13 14:48:20 -0700 |
commit | 0618b438478c1545b1e714f475a9e0467bafc5fc (patch) | |
tree | 1caef0bf7c9dee6d2957893c9a59194323bd6678 | |
parent | 1379bcf680baa4e18bc411dd75e5c5734cb42a2e (diff) | |
download | spack-0618b438478c1545b1e714f475a9e0467bafc5fc.tar.gz spack-0618b438478c1545b1e714f475a9e0467bafc5fc.tar.bz2 spack-0618b438478c1545b1e714f475a9e0467bafc5fc.tar.xz spack-0618b438478c1545b1e714f475a9e0467bafc5fc.zip |
rdma-core bugfix: help CMake find Python dependency (#22891)
-rw-r--r-- | var/spack/repos/builtin/packages/rdma-core/package.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/rdma-core/package.py b/var/spack/repos/builtin/packages/rdma-core/package.py index e678d113ba..dbce0ca1a0 100644 --- a/var/spack/repos/builtin/packages/rdma-core/package.py +++ b/var/spack/repos/builtin/packages/rdma-core/package.py @@ -38,7 +38,11 @@ class RdmaCore(CMakePackage): # system path) as a component in compile-time static strings such as # IBACM_SERVER_PATH. def cmake_args(self): - cmake_args = ["-DCMAKE_INSTALL_SYSCONFDIR=" + - self.spec.prefix.etc, - "-DCMAKE_INSTALL_RUNDIR=/var/run"] + cmake_args = [ + '-DCMAKE_INSTALL_SYSCONFDIR={0}'.format(self.spec.prefix.etc), + '-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 |