Skip to content

Commit

Permalink
Replace pkg_check_modules with find_package for curl
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankiesz authored Dec 20, 2024
1 parent 5fb356e commit 86f2a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ else()
endif()

if(BUILD_COMMON_CURL)
find_package(CURL REQUIRED)
if (WIN32)
find_package(CURL REQUIRED)
set(CURL_LIBRARIES CURL::libcurl)
else()
pkg_check_modules(CURL REQUIRED libcurl)
set(OPEN_SRC_INCLUDE_DIRS ${OPEN_SRC_INCLUDE_DIRS} ${CURL_INCLUDE_DIR})
endif()

set(OPEN_SRC_INCLUDE_DIRS ${OPEN_SRC_INCLUDE_DIRS} ${CURL_INCLUDE_DIRS})
Expand Down

0 comments on commit 86f2a80

Please sign in to comment.