Description
I've installed lapack v3.9.1 through homebrew w/ brew install lapack
, and I'm trying to use it in a CMake project, but I have manually modify lapacke-config.cmake
because the LAPACK_DIR
appears to be malformed.
On fresh install with version 3.9.1, the line is:
set(LAPACK_DIR "${_LAPACKE_PREFIX}/lib/cmake/-3.9.1")
And it should be:
set(LAPACK_DIR "${_LAPACKE_PREFIX}/lib/cmake/lapack-3.9.1")
I've done a bit of digging and I believe the issue was introduced here: https://github.com/Reference-LAPACK/lapack/blob/2dafa3d2756a7825c23a8c8456781561e36668ae/LAPACKE/cmake/lapacke-config-install.cmake.in#L8 in the most recent commit.
Where perhaps @LAPACK@
is undefined (sorry I'm at the edge of my CMake knowledge)... should it be @LAPACKLIB@
instead?
Checklist
Hi @5tefan. This is indeed a problem, and I think you got the answer.
@LAPACK@
was introduced in 5dd47be6720f97182a240efb8363ed58518ed12f. Based on the changes there, I think this is a typo. Could you please review this, @epsilon-0 ? Thanks in advance.@weslleyspereira Oops, sorry about this. Yes, this is a typo, it should've been @LAPACKLIB@.
As @5tefan has keenly spotted it, I'll let them make the PR :wink: .
Thanks!
Most helpful comment
@weslleyspereira Oops, sorry about this. Yes, this is a typo, it should've been @LAPACKLIB@.
As @5tefan has keenly spotted it, I'll let them make the PR :wink: .