Skip to content

cmake: convert curl_add_clang_tidy_test_target() macro to function - #20760

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

vszakats wants to merge 1 commit into
curl: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
outcast36 pushed a commit to greearb/curl that referenced this pull request Jun 3, 2026
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.

Closes curl#20760
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