-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Update libcurl to version 7.75 and add SSL support #8463
Update libcurl to version 7.75 and add SSL support #8463
Conversation
target_link_libraries(curl INTERFACE ws2_32.lib) | ||
target_link_libraries(curl INTERFACE ws2_32.lib crypt32.lib) | ||
else() | ||
find_package(OpenSSL REQUIRED) |
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.
If that's required then it need to be propagated into the installation guide/scripts as well
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.
I am not sure we can explain about the online update flag when it's doing nothing for now.
The default is false and the DB is empty
@@ -37,13 +44,17 @@ if(CHECK_FOR_UPDATES) | |||
add_definitions(-DCURL_STATICLIB) # Mandatory for building libcurl as static lib | |||
|
|||
target_include_directories(curl INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/libcurl/libcurl_install/include>) | |||
|
|||
target_link_libraries(curl INTERFACE debug ${CMAKE_CURRENT_BINARY_DIR}/libcurl/libcurl_install/lib/${CURL_DEBUG_TARGET_NAME}${CMAKE_STATIC_LIBRARY_SUFFIX}) |
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.
I think the keyword should be changed to PRIVATE as they are not supposed to be exposed in the DLL interface.
Same for the below entries
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.
It was built same as libusb (the keyword is not part of this PR), ifI try to change it to private I get lots of cmake errors like:
CMake Error at CMake/external_libcurl.cmake:43 (add_library):
Cannot find source file:
PRIVATE
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
@maloel / @ev-mp , please say how much effort should be made for changing to PRIVATE.
According to CMAKE , INTERFACE is not like PUBLIC.
Libraries following INTERFACE are appended to the link interface and are not used for linking .
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.
Looks good to me
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.
Add DSO reference
Added |
Tracked on [DSO-16463]