zeromq / libzmq

ZeroMQ core engine in C++, implements ZMTP/3.1
https://www.zeromq.org
Mozilla Public License 2.0
9.68k stars 2.36k forks source link

When libzmq is cross-compiled with CMake, the threads name and affinity cannot be set. #4513 #4559

Closed guill-delacourt closed 1 year ago

guill-delacourt commented 1 year ago

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.