diff options
author | Alan W. Irwin <airwin@users.sourceforge.net> | 2019-09-23 14:42:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-23 14:43:27 (GMT) |
commit | de5f123d3afd2dc4b82c66f760615e4034675418 (patch) | |
tree | 7b4f2b0e7dbeeb9c2f2f8988f322afaadf45a250 /Tests | |
parent | 3d1fb997e5322d6b6e7c4b0b467792995428ebb7 (diff) | |
download | CMake-de5f123d3afd2dc4b82c66f760615e4034675418.zip CMake-de5f123d3afd2dc4b82c66f760615e4034675418.tar.gz CMake-de5f123d3afd2dc4b82c66f760615e4034675418.tar.bz2 |
FindThreads: Do not hard-code '-l' flag on library name
When not using the `-pthread` flag we instead return a library to link
by name. Previously we hard-coded the `-l` flag before the library
name. When used with `target_link_libraries`, the hard-coded `-l` flag
is preserved rather than transformed into the link option preferred by
the toolchain in use. Drop the explicit `-l` part to let CMake's
generators produce the proper way to link the threads library for the
current toolchain.
Fixes: #19747
Diffstat (limited to 'Tests')
0 files changed, 0 insertions, 0 deletions