Repository navigation
Conversation
emanuele6
reviewed
Oct 4, 2022
emanuele6
reviewed
Oct 4, 2022
Contributor
There was a problem hiding this comment.
All the other cmake checks for HAVE_* options use if()/if(NOT) without DEFINED. I think we should not introduce this inconsistency.
Contributor
Author
There was a problem hiding this comment.
I added an explanatory comment at the top. I am checking for DEFINED rather than for the boolean value, because someone could define it to OFF, and in that case we still want to skip the symbol detection.
- Renames `uninstall` -> `curl_uninstall` - Ensures all export rules are guarded by CURL_ENABLE_EXPORT_TARGET
jbms
force-pushed
the
cmake-subproject-fix
branch
from
October 4, 2022 16:49
ac18f77 to
f05b3b9
Compare
jzakrzewski
approved these changes
Oct 7, 2022
jzakrzewski
left a comment
Contributor
There was a problem hiding this comment.
Don't know if it's complete but looks like a step in the right direction.
Member
|
Thanks! |
vszakats
added a commit
that referenced
this pull request
Nov 19, 2025
…n lib and src Based on existing code and commit history it appears `CURL_DISABLE_INSTALL` means to prevent calling `install()`; `CURL_ENABLE_EXPORT_TARGET` means to prevent calling `export()` and `install()`s with `EXPORT` in them. Fix them to also apply to the lib and src directories in that vain: - lib: honor `CURL_DISABLE_INSTALL` - src: honor `CURL_DISABLE_INSTALL` - src: honor `CURL_ENABLE_EXPORT_TARGET` https://cmake.org/cmake/help/v4.2/command/install.html https://cmake.org/cmake/help/v4.2/command/export.html - `CURL_DISABLE_INSTALL` follow-up to: aace27b #12287 - `CURL_ENABLE_EXPORT_TARGET` follow-up to: 8698825 #9638 643ec29 #7060 Closes #19144
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
uninstall->curl_uninstall