This PR fixes the issue #4513 by changing the CMake production to be on par with the autotools production when it checks the thread name and affinity capabilities. The checks are changed from execution checks to compilation checks, so that the features can be correctly selected even when cross-compiling.
This PR fixes the issue #4513 by changing the CMake production to be on par with the autotools production when it checks the thread name and affinity capabilities. The checks are changed from execution checks to compilation checks, so that the features can be correctly selected even when cross-compiling.