Re: [cmake-developers] target_link_libraries links mathlib as -lm rather than /libm.so, why?

2019-06-18 Thread Brad King
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

[cmake-developers] target_link_libraries links mathlib as -lm rather than /libm.so, why?

2019-06-17 Thread Alan W. Irwin
On Linux (Debian Testing) with CMake 3.13.2 (which I built myself) I have a case where apparently target_link_libraries( /usr/lib/x86_64-linux-gnu/libm.so) results in an actual link option "-lm". Is this an exception to the rule documented at