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

install cpr, but the dependencies of cpr (curl) can not be installed to the correct path #1075

Closed
carlwang99 opened this issue Jul 4, 2024 · 2 comments

Comments

@carlwang99
Copy link

Description

i am using cpr v1.9.7, when i use "install(.... cpr ....)" in cmake
libcpr.so can be installed to the correct path, but the dependencies(curl) can not be installed to the correct path
how can i deal with this issue?

Example/How to Reproduce

FetchContent_Declare(cpr GIT_REPOSITORY ${LIBCPR_REPO}
GIT_TAG 032ffffff4ff78b093b) # commit hash
FetchContent_MakeAvailable(cpr)
install(xxx cpr xxx)

Possible Fix

No response

Where did you get it from?

GitHub (branch e.g. master)

Additional Context/Your Environment

  • OS: centos
  • Version: 7
@COM8
Copy link
Member

COM8 commented Jul 10, 2024

@carlwang99 thanks for reporting!

What do you mean with "correct path"?

@COM8 COM8 added Build 👷 and removed Bug 🐛 labels Jul 10, 2024
@COM8 COM8 self-assigned this Jul 10, 2024
@carlwang99
Copy link
Author

i found cmake install instruction in cpr/CMakelists.txt
I resolved the issue by overriding the CMAKE_INSTALL_LIBDIR parameter in the outer project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants