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](0f2d2c7659 (diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aR16)), we can override SYSCONFDIR with our own defines.
This commit is contained in:
Wouter Deconinck 2023-12-19 03:47:16 -06:00 committed by GitHub
parent 9723fe88f5
commit cf99912352
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,3 +22,6 @@ class Flexiblas(CMakePackage):
# virtual dependency # virtual dependency
provides("blas") provides("blas")
provides("lapack") provides("lapack")
def cmake_args(self):
return [self.define("SYSCONFDIR", self.prefix.etc)]