This reverts commit 4731049ba4f8a820cc4aa13a745e41bdfbee284a (#35418), which broke the build with -DBUILD_TESTS=OFF:
-- Performing Test HAVE_PTHREAD_GETTHREADID_NP - Failed
CMake Error at cmake/libmultiprocess.cmake:37 (set_target_properties):
set_target_properties Can not find target to add properties to: mptest
Call Stack (most recent call first):
src/CMakeLists.txt:24 (add_libmultiprocess)
Reported by afiore on IRC.