Skip to content

Commit

Permalink
Check for libcurl_shared before selecting system curl when using the …
Browse files Browse the repository at this point in the history
…AUTO setting in CMAKELISTS
  • Loading branch information
streetpea committed Jan 12, 2025
1 parent 7e198e7 commit ec94da8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ endif()
if(CHIAKI_USE_SYSTEM_CURL)
if (CHIAKI_USE_SYSTEM_CURL STREQUAL AUTO)
find_package(CURL COMPONENTS HTTP HTTPS WS WSS QUIET)
if(NOT TARGET CURL::libcurl_shared)
set(CURL_FOUND OFF)
endif()
set(CHIAKI_USE_SYSTEM_CURL ${CURL_FOUND})
else()
find_package(CURL REQUIRED COMPONENTS HTTP HTTPS WS WSS)
Expand Down

0 comments on commit ec94da8

Please sign in to comment.