-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
cmake: Export libcurl and curl targets to use by other cmake projects #1879
Conversation
The new file is not put into the dist tarball so it fails when built from a release tarball - this is the red travis build:
To fix, add the new file to the |
Ah, snap! I tend to forget about that. |
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.
Why lower letter for prefix curl_ used?
You trying not to clash with FindCURL.cmake module bundled with CMake?
@snikulov totally by accident (and because the project write its name that way). You think it should be |
@jzakrzewski Well, If nobody will object, I would like to propose CURL_ prefix for all project's variables and options. What do you think? |
@snikulov So basically use |
0c48794
to
fca0840
Compare
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.
LGTM
I would recommend "CURL_" for variable names. If you use |
This looks done but one thing, the min ver is bumped from 2.8 to 2.8.8 and I seem to recall there was some issue or reason we went with 2.8 as the minimum version. The commit is 14aa8f0 but it doesn't have a reference url, does anyone remember why 2.8 was chosen as the minimum? Is there some LTS that uses 2.8.0 ? For reference Ubuntu 14 LTS and CentOS 7 have a packaged cmake 2.8.12.2, Ubuntu 10 LTS (past EOL) has 2.8.2 and I'm not sure about Ubuntu 12. |
I have updated the CMake version only as much as it was required for all the bits and pieces to work. Generally we have agreed (see #1010 ) that 2.8.12 is reasonable. However, I have decided not to jump there without any reason. The dumbest reason would be OK though or we make the update right here, right now and get it over with. What do you think? |
Since the autotools build system is still present and cmake is still marked experimental, I think it is OK to bump CMake quite a bit. We can declare CMake on Ubuntu 12.04 unsupported (use autotools in that case). One good reason to set a higher CMake version is to allow for more freedom, rather than working around missing CMake language features in the old version, you can use the newer version instead. And you also do not have to test with older CMake. CMake 2.8.12 is OK, I just checked and as of November 2016 RHEL 7 has also been updated with this version. Updated #990 (comment) |
Great, I'll update this PR one more time to bump the version all the way to 2.8.12 and it'll be ready for the next feature window. |
fca0840
to
24839ce
Compare
The imported target has been missing include directories It worked on my machine beacuse of globally-installed curl
The new commits are intended to be squashed with the first one. |
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.
LGTM
With those exports one should be able to use curl in own project like this (just a stupid example):