Skip to content

Commit

Permalink
Require CURL in 1.6 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien committed May 7, 2021
1 parent 9509496 commit b99b4f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/cpr/all/patches/006-fix-curl-components.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- message(FATAL_ERROR "Curl not found on this system. To use the build in version set CPR_FORCE_USE_SYSTEM_CURL to OFF.")
- endif()
- endif()
+ find_package(CURL)
+ find_package(CURL REQUIRED)
+ if(CURL_FOUND)
+ message(STATUS "Curl found on this system.")
else()
Expand Down
2 changes: 1 addition & 1 deletion recipes/cpr/all/patches/008-fix-curl-components.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
- message(FATAL_ERROR "Curl not found on this system. To use the build in version set CPR_FORCE_USE_SYSTEM_CURL to OFF.")
- endif()
- endif()
+ find_package(CURL)
+ find_package(CURL REQUIRED)
+ if(CURL_FOUND)
+ message(STATUS "Curl found on this system.")
else()
Expand Down

0 comments on commit b99b4f6

Please sign in to comment.