Not sure why https://github.com/curl/curl/blob/master/CMakeLists.txt#L289 uses CMAKE_THREAD_LIBS_INIT
when https://github.com/curl/curl/blob/master/CMakeLists.txt#L394 uses OpenSSL::SSL OpenSSL::Crypto
.
At the very least this stop the user from getting the THREADS_PREFER_PTHREAD_FLAG usage honoured.