Skip to content
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

Why do remove curl-config on linux? #14459

Closed
MaxRev-Dev opened this issue Nov 8, 2020 · 1 comment · Fixed by #14473
Closed

Why do remove curl-config on linux? #14459

MaxRev-Dev opened this issue Nov 8, 2020 · 1 comment · Fixed by #14473
Assignees
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist

Comments

@MaxRev-Dev
Copy link
Contributor

Hi. I'm writing automation for builds of GDAL with my library - gdal.netcore.
I can't find how I can link vcpkg's CURL package to local source of PROJ6 library.

Here you can find my configuration. Configure for proj has flags CURL_INCLUDE_DIR and CURL_LIBRARY and a parameter --with-curl={path_to_file/curl-config}
I found that on windows curl-config exists, but nor on linux.

So why do you remove curl-config? Should I create a local patch, or something?
My environment: WSL2 (CentOS7).

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR VCPKG_TARGET_IS_LINUX)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
else()
file(INSTALL ${CURRENT_PACKAGES_DIR}/bin/curl-config DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(REMOVE ${CURRENT_PACKAGES_DIR}/bin/curl-config ${CURRENT_PACKAGES_DIR}/debug/bin/curl-config)
#Fix install path
file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/curl-config CURL_CONFIG)
string(REPLACE "${CURRENT_PACKAGES_DIR}" "${CURRENT_INSTALLED_DIR}" CURL_CONFIG "${CURL_CONFIG}")
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/curl-config "${CURL_CONFIG}")
endif()

@JackBoosY JackBoosY added the category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist label Nov 8, 2020
@JackBoosY JackBoosY self-assigned this Nov 8, 2020
@JackBoosY
Copy link
Contributor

Thanks for pointing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-feature The issue is with a library, which is requesting new capabilities that didn’t exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants