-
Notifications
You must be signed in to change notification settings - Fork 126
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
Default of SUNDIALS_MATH_LIBRARY incorrect? #229
Labels
Comments
bjodah
changed the title
Default of incorrect?
Default of SUNDIALS_MATH_LIBRARY incorrect?
Nov 17, 2022
What platform/operating system are you seeing this error on? |
Ubuntu 22.04 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm updating a build script for sundials and I got some linking errors related to transitioning from USE_GENERIC_MATH to
SUNDIALS_MATH_LIBRARY
. I noticed that the default value for SUNDIALS_MATH_LIBRARY gets set to"-lm"
, I think it should read just"m"
shouldn't it? But maybe CMake strips leading-l
, I haven't actually confirmed that it matters.defined here:
sundials/cmake/SundialsBuildOptionsPre.cmake
Line 99 in 1375f05
sundials/cmake/SundialsDeprecated.cmake
Line 173 in b27bf8a
used here (note that the linking mode is PRIVATE):
sundials/cmake/macros/SundialsAddLibrary.cmake
Line 163 in 1375f05
docs for
target_link_libraries
:excerpt:
that would explain why the link error was in linking a test, no?
cmake invocation and output
or maybe
SUNDIALS_MATH_LIBRARY
need to be added to e.g. cvRoberts_dns etc.?The text was updated successfully, but these errors were encountered: