AddThreadsFlagsΒΆ

Global thread-library integration for DUNE modules.

If the CMake package find_package(Threads) succeeds, this module:

HAVE_THREADS

Sets the config-header variable to reflect whether the thread library was found.

Threads::Threads

Links the imported thread library target globally via link_libraries(). As a result, targets created afterwards in the current directory scope inherit the thread library automatically.