@Brad, the documentation for target_link_libraries() clearly states that
passing any argument that begins with - is treated as a linker flag, and
is an accepted way to pass linker flags. It however, does not mention
anywhere that the flags, or libraries that the target is linking to,
will be copied to every other target which has a dependency on the
target. There is no good reason to copy the flags of one target to any
other target. If that was the behavior I had wanted, I would have just
set CMAKE_LINKER_FLAGS directly, so it would be applied to everything.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1203786

Title:
  Invalid handling of linker flags during build

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cmake/+bug/1203786/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to