diff --git a/CMakeLists.txt b/CMakeLists.txt
index c065227..3ed93b8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -55,7 +55,7 @@ include(cmake/code_coverage.cmake)
 
 # Curl configuration
 if(USE_SYSTEM_CURL)
-    find_package(CURL COMPONENTS PROTOCOLS HTTP HTTPS FEATURES SSL)
+    find_package(CURL)
     if (CURL_FOUND)
         set(SSL_ENABLED ON CACHE INTERNAL "" FORCE)
     else()
diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt
index 563b785..a7ccbdf 100644
--- a/cpr/CMakeLists.txt
+++ b/cpr/CMakeLists.txt
@@ -20,7 +20,8 @@ add_library(cpr
 
 add_library(cpr::cpr ALIAS cpr)
 
-target_link_libraries(cpr PUBLIC CURL::libcurl) # todo should be private, but first dependencys in ssl_options need to be removed
+target_link_libraries(cpr PUBLIC ${CURL_LIBRARIES}) # todo should be private, but first dependencys in ssl_options need to be removed
+target_include_directories(cpr PUBLIC ${CURL_INCLUDE_DIRS})
 
 # Set version for shared libraries.
 set_target_properties(cpr
