Files
CMake/Modules
Alan W. Irwin de5f123d3a 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
2019-09-23 10:43:27 -04:00
..
2019-09-16 11:07:04 -04:00
2019-09-16 11:07:04 -04:00
2019-04-10 07:43:20 +10:00
2019-09-04 09:43:18 -04:00
2019-05-26 22:34:06 +02:00
2019-07-03 11:57:53 +03:00
2019-05-14 10:49:30 -04:00

See the "Find Modules" section of the cmake-developer(7) manual page.

For more information about how to contribute modules to CMake, see this page:
https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/dev/Module-Maintainers