./libcurl.a(libcurl_la-curl_thread.o): In function 'Curl_thread_create' : curl_threads.c:(.text+0x7c):undefined reference to 'pthread_create'
...
collect2: error: ld returned 1 exit status.
Searched a lot, and finally fixed my problem by adding "-lpthread -ldl" in CMakelist.txt as below:
target_link_libraries(${APP_NAME} curl ssl crypto zlib libevent -lpthread -ldl)