diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 866a0d394..76394df0e 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -244,6 +244,9 @@ if (BUILD_EXAMPLES) if(OPENSSL_FOUND) target_link_libraries(${E_NAME} PRIVATE OpenSSL::SSL) endif() + if (CURL_FOUND) + target_link_libraries(${E_NAME} PRIVATE CURL::libcurl) + endif() endforeach() endif() @@ -314,6 +317,9 @@ if (BUILD_TESTS) if(OPENSSL_FOUND) target_link_libraries(${target} PRIVATE OpenSSL::SSL) endif() + if (CURL_FOUND) + target_link_libraries(${target} PRIVATE CURL::libcurl) + endif() endmacro() add_test(test_info SRCS test/test_info.cc)