Notes |
|
(0039403)
|
Brad King
|
2015-09-10 16:45
|
|
FindThreads uses several checks that are all C-specific. Some of the checks have CXX versions available. Others do not. All this infrasturcture was originally built before we had a notion of enabling C and CXX separately.
I wonder if instead we should memorize in Modules/{Compiler,Platform}/*.cmake what flags/libraries are needed for threading on each system. We could even consider making threading a first-class CMake target property with flag mapping available on all generators. FindThreads could then just forward the information from the platform modules into its legacy variables. |
|
|
(0039474)
|
Rolf Eike Beer
|
2015-09-23 05:42
|
|
The tread support is more something of the C library than of the compiler, at least for those platforms where it really makes a difference, e.g. you may not get any thread support at all if you have a minimal C library on embedded systems while still running gcc. It's indeed irrelevant for MSVC as you are basically coupled with a specific C runtime when using this compiler, but that's not the case for other platforms.
The limitation to C should be gone now, there are patches in next that should make FindThreads.cmake work in projects where only C++ is enabled. |
|
|
(0039480)
|
Brad King
|
2015-09-25 10:15
|
|
|
|
(0040419)
|
Robert Maynard
|
2016-02-01 09:10
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|