[MacPorts] #64379: lapack @3.10.0: cmake files in wrong location
MacPorts
noreply at macports.org
Fri Jan 7 12:32:49 UTC 2022
#64379: lapack @3.10.0: cmake files in wrong location
-----------------------+--------------------
Reporter: lepus2589 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Keywords: | Port: lapack
-----------------------+--------------------
The pull request updating LAPACK from 3.9.0 to 3.10.0 introduced a new
location of the cmake files provided by the library
(https://github.com/macports/macports-ports/pull/12106/commits). They
moved from {{{${destroot}${prefix}/lib/${name}/cmake}}} to
{{{${destroot}${cmake_share_module_dir} }}}.
This would be correct (I guess), if the cmake files provided by LAPACK
were find-modules. But LAPACK provides config-modules (see
https://cmake.org/cmake/help/latest/command/find_package.html for the
difference).
As far as I can see, the old location was correct for config modules. In
fact, with the latest port version, cmake cannot find LAPACK or LAPACKE on
my machine using {{{find_package(LAPACK CONFIG REQUIRED)}}} (the CONFIG
keyword forces cmake to look for config modules and skips the cmake-
shipped find module findLAPACK, which does not use these cmake files).
--
Ticket URL: <https://trac.macports.org/ticket/64379>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list