Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add compatibility to vcpkg buildsystem (#8317)
- Loading branch information
1 parent
9a07792
commit bd6f1cc
Showing
6 changed files
with
189 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
mark_as_advanced(CURL_LIBRARY CURL_INCLUDE_DIR) | ||
|
||
find_library(CURL_LIBRARY NAMES curl) | ||
find_library(CURL_LIBRARY NAMES curl libcurl) | ||
find_path(CURL_INCLUDE_DIR NAMES curl/curl.h) | ||
|
||
set(CURL_REQUIRED_VARS CURL_LIBRARY CURL_INCLUDE_DIR) | ||
|
||
if(WIN32) | ||
find_file(CURL_DLL NAMES libcurl-4.dll | ||
PATHS | ||
"C:/Windows/System32" | ||
DOC "Path to the cURL DLL (for installation)") | ||
mark_as_advanced(CURL_DLL) | ||
set(CURL_REQUIRED_VARS ${CURL_REQUIRED_VARS} CURL_DLL) | ||
# If VCPKG_APPLOCAL_DEPS is ON, dll's are automatically handled by VCPKG | ||
if(NOT VCPKG_APPLOCAL_DEPS) | ||
find_file(CURL_DLL NAMES libcurl-4.dll libcurl.dll | ||
DOC "Path to the cURL DLL (for installation)") | ||
mark_as_advanced(CURL_DLL) | ||
endif() | ||
endif() | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(CURL DEFAULT_MSG ${CURL_REQUIRED_VARS}) | ||
|
||
find_package_handle_standard_args(CURL DEFAULT_MSG CURL_LIBRARY CURL_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.