diff --git a/CMakeLists.txt b/CMakeLists.txt index a0200eb4..f2074bff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -128,7 +128,9 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC ) if(AMQP-CPP_LINUX_TCP) - target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS}) + find_package(Threads REQUIRED) + + target_link_libraries(${PROJECT_NAME} ${CMAKE_DL_LIBS} Threads::Threads) # Find OpenSSL and provide include dirs find_package(OpenSSL REQUIRED) target_include_directories(${PROJECT_NAME} PRIVATE ${OPENSSL_INCLUDE_DIR})