[MacPorts] #64379: lapack @3.10.0: cmake files in wrong location
MacPorts
noreply at macports.org
Fri Mar 29 14:29:41 UTC 2024
#64379: lapack @3.10.0: cmake files in wrong location
------------------------+----------------------
Reporter: lepus2589 | Owner: (none)
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.7.1
Resolution: | Keywords: haspatch
Port: lapack |
------------------------+----------------------
Comment (by kencu):
So a bit of confusion with {{{lapack}}} and {{{lapacke}}}.
It looks like both names refer to the same thing, but when the dir is
being set, you have to use the dir name (with e or no-e) that matches the
package you are searching for (with e or no-e). Which is obvious once you
see what is going on, but wasn't so obvious when I was first testing it
out.
Paying attention to that, setting the dir manually allows the files to be
found.
And moving the config files into {{{/opt/local/lib/cmake/lapack-3.12.0}}}
and {{{/opt/local/lib/cmake/lapacke-3.12.0}}} and
{{{/opt/local/share/cmake/Modules/cblas-3.12.0}}} allows cmake to find
them without any prompting or directory setting, which is surely better.
In {{{/opt/local/share/cmake}}} I also see other projects that have put
their cmake config files in there, for the same reason no doubt.
And that is indeed the location where the cmake documentation says they
should be put:
https://cmake.org/cmake/help/book/mastering-cmake/cmake/Help/guide/using-
dependencies/index.html#id3
So -- looks like no reason to put them anywhere else, as AFAICT they won't
be found without manual intervention.
I don't think there is anything in the cmake port or the cmake PortGroup
that needs repair here. It would seem the fix is to have lapack(e) put the
cmake config files in {{{/opt/local/lib/cmake}}}.
Also -- the cmake port has been updated now and is as current and as
patched as cmake-devel, so that issue is gone now too.
--
Ticket URL: <https://trac.macports.org/ticket/64379#comment:19>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list