Fix lapack linker path + slycot directory case #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
python-control
package has been having build problems and I traced these back toslycot
. The problem traced down to theCMake
installation not correctly linking in thelapack
library, which resulted in the following error during the build process forslycot
:In chasing this down, I found out that
CMake
was not setting the variableLAPACK_LIBRARIES
in theCMakeLists.txt
file. Specifically, the following codegenerate the output
It appears that the blank
LAPACK_LIBRARIES
variable meant thatslycot
was not actually being linked againstlapack
. To fix this, I removed the commented out lineset(BLA_VENDOR "OpenBLAS")
, which changes the output (on linux) to read:This PR uncomments that line and fixes the problem. I am not quite sure what changed that made this problem crop up...
@repagh Do you know/remember why that line was commented out.