nc: request thread support by default
we need this for util::job::queue which is in pretty much everything, so we may as well globally enable threading.
This commit is contained in:
parent
929556d677
commit
a1d3200fde
6
nc.cmake
6
nc.cmake
@ -7,6 +7,12 @@ if (NOT AUTOCONF_DEFINES)
|
||||
set (AUTOCONF_DEFINES 1)
|
||||
endif()
|
||||
|
||||
# Unconditionally link pthreads in. Some projects won't need it, but most
|
||||
# will in some capacity if only through implied dependency (like thread pools).
|
||||
set (THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package (Threads REQUIRED)
|
||||
link_libraries (Threads::Threads)
|
||||
|
||||
include (nc_cxx)
|
||||
include (nc_platform)
|
||||
include (nc_optimisation)
|
||||
|
Loading…
Reference in New Issue
Block a user