Change #238319
Category | curl |
Changed by | Viktor Szakats <commit | @vsz.me>
Changed at | Fri 04 Jul 2025 06:28:40 |
Repository | https://github.com/curl/curl.git |
Project | curl |
Branch | master |
Revision | 42fdc65a989d9e57c418eb56770ab8e31736d56a |
Comments
cmake: fix `curl_add_clang_tidy_test_target` when no `-D` option Fix `curl_add_clang_tidy_test_target` generating an invalid option for `clang-tidy` if the tested target has no custom macro definition. Current build doesn't hit this case, but a pending PR does. Fixing: ``` [...] -Ilib -Itests/client -DCURL_HIDDEN_SYMBOLS -DHAVE_CONFIG_H -D_definitions_t-NOTFOUND ``` error: ISO C99 requires whitespace after the macro name [clang-diagnostic-c99-extensions,-warnings-as-errors] Cherry-picked from #17768 Closes #17813
Changed files
- CMake/Macros.cmake