diff options
author | Wouter Deconinck <wdconinc@gmail.com> | 2023-12-19 03:47:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-19 10:47:16 +0100 |
commit | cf9991235221cb0eec25f3c112e798040c31a7ec (patch) | |
tree | faaf53aacb5c11179849e24c942fb92578b1df17 /var | |
parent | 9723fe88f5bb48c31b2ca0839dae6675fca6ce30 (diff) | |
download | spack-cf9991235221cb0eec25f3c112e798040c31a7ec.tar.gz spack-cf9991235221cb0eec25f3c112e798040c31a7ec.tar.bz2 spack-cf9991235221cb0eec25f3c112e798040c31a7ec.tar.xz spack-cf9991235221cb0eec25f3c112e798040c31a7ec.zip |
flexiblas: explicitly set SYSCONFDIR (#41748)
As of CMake 3.4, [GNUInstallDirs](https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html) treats `SYSCONFDIR` differently for a prefix that starts with `/opt`, then "the SYSCONFDIR value etc becomes /etc/opt/...." In the case of flexiblas, that results in failing attempts to write files to a system directory.
Since [flexiblas version 1](https://github.com/mpimd-csc/flexiblas/commit/0f2d2c76594ed27c9315f3736ff7d2727223620a#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR16), we can override SYSCONFDIR with our own defines.
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/flexiblas/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flexiblas/package.py b/var/spack/repos/builtin/packages/flexiblas/package.py index b42fc81153..ba22741a28 100644 --- a/var/spack/repos/builtin/packages/flexiblas/package.py +++ b/var/spack/repos/builtin/packages/flexiblas/package.py @@ -22,3 +22,6 @@ class Flexiblas(CMakePackage): # virtual dependency provides("blas") provides("lapack") + + def cmake_args(self): + return [self.define("SYSCONFDIR", self.prefix.etc)] |