Steffen Dettmer d4e551a90b FindThreads: Drop try_run to improve cross-compiling support
Use `try_compile` instead of `try_run`.  It is not clear why `try_run`
was ever needed, and it does not work during cross-compiling.

Update the check's source file to remove code associated with actually
running things.  Also remove the ancient `__CLASSIC_C__` code path and
use a simple `int main(void)` as in `Modules/CheckIncludeFile.c.in`.

Fixes: #16920
2017-08-30 11:15:26 -04:00
..
2017-03-07 15:22:55 -05:00
2017-05-16 09:47:50 -04:00
2017-05-17 11:26:11 -06:00
2017-05-17 11:26:11 -06: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://cmake.org/Wiki/CMake:Module_Maintainers