find_package(Threads REQUIRED)

and then in target_link_libraries: ${CMAKE_THREAD_LIBS_INIT}

see mbm/src/server/CMakeLists.txt