-
Notifications
You must be signed in to change notification settings - Fork 966
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
find_package for CMake #792
Comments
Looking a little closer, I see that #645 was a PR that attempted to fix this problem and that created the file |
In order for the CPR config to be installed, you must use the libcurl of your system ( |
OK, tested and that does work. However, that fact and the procedure for using Cmake |
@jmafc Would you like to create a PR for this? |
Not at this time. Sorry. You may close the issue if you want. |
Is your feature request related to a problem? Please describe.
The suggested approach of using FetchContent to include
cpr
causes it (and everything else) to be checked and rebuilt (including all ofcurl
and its tests) any time I tweak myCMakeLists.txt
(which I've been doing rather frequently because I'm migrating other programs--and only two of which usecpr
and those are essentially done).Describe the solution you'd like
A
find_package
alternative to the FetchContent suggestion.Describe alternatives you've considered
I built
cpr
locally and installed it to/usr/local/lib
and addedfind_package
to my CMakeLists.txt. However,cmake
complained about not being able to findcprConfig.cmake
orcpr-config.cmake
. Since the latter file exists in your root directory, I copied it manually to/usr/local/lib/cmake/CPR
. However, cmake now complains:So what I'm really asking is that the work that was started when that
cpr-config.cmake
was created be completed so thatfind_package
can be used.Additional context
Using
cpr 1.9.0
on Debian 11.The text was updated successfully, but these errors were encountered: