[cmake-developers] target_link_libraries links mathlib as -lm rather than <fullpath>/libm.so, why?
Brad King
brad.king at kitware.com
Tue Jun 18 07:29:59 EDT 2019
On 6/17/19 11:22 PM, Alan W. Irwin wrote:
> target_link_libraries(.... /usr/lib/x86_64-linux-gnu/libm.so)
>
> results in an actual link option "-lm".
Thanks. I can reproduce that and have opened an issue with an explanation:
https://gitlab.kitware.com/cmake/cmake/issues/19399
It occurs when the `.so` is a GNU ld script instead of an actual binary.
-Brad
More information about the cmake-developers
mailing list