Skip to content

cmake: convert curl_add_clang_tidy_test_target() macro to function#20760

Closed
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cm-macro-to-func
Closed

cmake: convert curl_add_clang_tidy_test_target() macro to function#20760
vszakats wants to merge 1 commit intocurl:masterfrom
vszakats:cm-macro-to-func

Conversation

@vszakats
Copy link
Copy Markdown
Member

I thought a macro is necessary to have get_directory_property() and
CMAKE_CURRENT_SOURCE_DIR work on the correct directory, but it turns
out they do work the same when used in a function.

It was a macro, in the belief this is necessary to have
`get_directory_property()` and `CMAKE_CURRENT_SOURCE_DIR` work on the
correct directory, but it turns out they do work the same when used in
a function.
@github-actions github-actions bot added the build label Feb 27, 2026
@vszakats vszakats closed this in 00b215b Feb 27, 2026
@vszakats vszakats deleted the cm-macro-to-func branch February 27, 2026 13:09
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.

1 participant