Should eigen-dev put its cmake rules into /usr/lib/cmake instead of /usr/share/cmake?
On Alpine Linux 3.11.3, package eigen-dev
stores its *.cmake
files in /usr/share/cmake/Modules
; see package contents. Is this the correct path?
By default, cmake on Alpine 3.11.3 does not seem to read config files from /usr/share/cmake
; therefore, when a developer calls find_package(Eigen3 CONFIG REQUIRED)
in their own CMakeLists.txt
, the build will fail on an Alpine system with eigen-dev
installed. As a work-around, developers can set the environment variable Eigen3_DIR=/usr/share/cmake/Modules
before calling cmake. However, this is rather painful to find out; it would be nicer if things were working out of the box. Other Alpine packages, such as llvm-dev or clang-dev, seem to be placing their developer-facing cmake configs into /usr/lib/cmake
. Should the eigen-dev package do that, too?