-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[curl] Update to 7.66.0 #7331
Merged
Merged
[curl] Update to 7.66.0 #7331
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
486a412
[curl] Update to 7.65.3
past-due 36d93f5
[curl] Remove USAGE
past-due cbb4656
Add wrapper
past-due 14c9d61
[curl] Update to 7.66.0
past-due 27c992d
Add wrapper to curl
cbezault 8d8fa6d
drop parent_scope
cbezault b6481b7
add change that didn't make it
cbezault 83593e9
Populate CURL_LIBRARY
cbezault f84ed44
Fix transitive dependency
cbezault 9030807
try to actually set LIBRARIES
cbezault c389542
get .libs
cbezault 7358190
fix curlpp and dynamic builds on linux
cbezault e48de53
add @cenit's suggestion and fix typo in curlpp
cbezault c479671
modify PDAL patch
cbezault File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
set (FOUND_CONFIG FALSE) | ||
|
||
foreach (ARG ${ARGS}) | ||
string (TOUPPER "${ARG}" ARG) | ||
|
||
if (${ARG} STREQUAL "CONFIG" OR ${ARG} STREQUAL "NO_MODULE") | ||
set (FOUND_CONFIG TRUE) | ||
endif() | ||
endforeach() | ||
|
||
if (FOUND_CONFIG) | ||
_find_package(${ARGS}) | ||
else() | ||
_find_package(${ARGS} CONFIG) | ||
endif() | ||
|
||
if(TARGET CURL::libcurl) | ||
set(CURL_FOUND TRUE) | ||
|
||
get_target_property(_curl_include_dirs CURL::libcurl INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(_curl_link_libraries CURL::libcurl INTERFACE_LINK_LIBRARIES) | ||
|
||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") | ||
cbezault marked this conversation as resolved.
Show resolved
Hide resolved
|
||
get_target_property(_curl_location_debug CURL::libcurl IMPORTED_IMPLIB_DEBUG) | ||
get_target_property(_curl_location_release CURL::libcurl IMPORTED_IMPLIB_RELEASE) | ||
endif() | ||
|
||
if(NOT _curl_location_debug AND NOT _curl_location_release) | ||
get_target_property(_curl_location_debug CURL::libcurl IMPORTED_LOCATION_DEBUG) | ||
get_target_property(_curl_location_release CURL::libcurl IMPORTED_LOCATION_RELEASE) | ||
endif() | ||
|
||
if(NOT _curl_link_libraries) | ||
set(_curl_link_libraries) | ||
endif() | ||
|
||
set(CURL_INCLUDE_DIRS "${_curl_include_dirs}") | ||
set(CURL_LIBRARY_DEBUG "${_curl_location_debug}") | ||
set(CURL_LIBRARY_RELEASE "${_curl_location_release}") | ||
|
||
#For builds which rely on CURL_LIBRAR(Y/IES) | ||
include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake) | ||
select_library_configurations(CURL) | ||
|
||
set(CURL_LIBRARIES ${CURL_LIBRARY} ${_curl_link_libraries}) | ||
set(CURL_VERSION_STRING "${CURL_VERSION}") | ||
|
||
set(_curl_include_dirs) | ||
set(_curl_link_libraries) | ||
set(_curl_location_debug) | ||
set(_curl_location_release) | ||
endif() |
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 was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it really necessary? looks unnecessarily complicated.
I'd take a look at what I did for LibLZMA, also because there is the "MODULE" keyword forgotten (which is incompatible with the CONFIG keyword but not managed here...)
https://github.com/microsoft/vcpkg/blob/master/ports/liblzma/vcpkg-cmake-wrapper.cmake
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, is
list(REMOVE_ITEM)
case-insensitive? It does look cleaner.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you really pass
MODULE
,CONFIG
andNO_MODULE
lowercase? TWILThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, apparently it's inconsistently implemented but they are supposed to be case-sensitive. TIL. I'll move to your approach.