-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake: Use LAPACK imported target #542
Conversation
This may help address #350. |
@balos1 If you're good with the updates to With |
This looks great! |
Looks like there is a problem with the compile test that might be specific to CMake 3.18, I'm looking into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes the missing linking flags issue I had. When I have two lapack versions (system and spack) it finds both in cmake and only uses the system version for compilation. It's unclear how I would use the spack version for compilation.
Unfortunately |
Got it working with David's help. For posterity, |
@gardner48 The latest version still works for me, both with a system LAPACK and spack one. |
LAPACK::LAPACK
rather thanLAPACK_LIBRARIES
try_compile
testLAPACK_WORKS
(test every configuration pass)CHECK_START
,CHECK_PASSED
, andCHECK_FAILED
messages in compile testinclude_guard(GLOBAL)
SundialsTPL.cmake.template
with above changes