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

cmake: namespace functions and macros #15498

Closed
wants to merge 7 commits into from

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Nov 6, 2024

Prefix (or suffix) curl-defined macro and function names with curl.
To avoid collisions with non-curl CMake and to make them recognizable
as curl-specific calls.

@vszakats vszakats force-pushed the cm-namespace-functions branch from 3e54c88 to 324327b Compare December 16, 2024 20:17
@vszakats vszakats closed this in b9895b9 Dec 16, 2024
@vszakats vszakats deleted the cm-namespace-functions branch December 16, 2024 20:55
@@ -27,7 +27,7 @@
# This macro is intended to be called multiple times with a sequence of
# possibly dependent header files. Some headers depend on others to be
# compiled correctly.
macro(check_include_file_concat _file _variable)
macro(check_include_file_concat_curl _file _variable)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change it to curl prefix instead suffix to align with the other names, and be more clear that is curl macro?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a local variation of a built-in function. A prefix made this much less obvious and reduced readability. Hence the suffix for this particular name.

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

Successfully merging this pull request may close these issues.

2 participants