ECP-VeloC / AXL

Asynchronous Transfer Library
MIT License
2 stars 8 forks source link

add cmake option to toggle pthreads #122

Closed adammoody closed 2 years ago

adammoody commented 2 years ago

This defines a new -DENABLE_PTHREADS=[ON/OFF] option that one can use to toggle pthreads. It defaults to ON, so this lets one disable building the pthread support. That might be helpful for someone running on a system where pthreads is not installed, or more likely, one does not want to add a -lpthread to their link because they otherwise don't have a pthreads dependency.

gonsie commented 2 years ago

The original contents of this PR got included by #123. I've fixed up one small change, but really see d3ab8d9