Change #238368
Category | None |
Changed by | Viktor Szakats <commit | @vsz.me>
Changed at | Sat 05 Jul 2025 00:40:32 |
Repository | https://api.github.com/repos/curl/curl |
Project | curl/curl |
Branch | master |
Revision | e54c80b397d9396dc4b260935efce7f8d2c47b99 |
Comments
cmake: `curl_add_clang_tidy_test_target` tidy-ups - simplify gathering header directories and compiler definitions recursively. - handle the case when the cmake directory object doesn't define header directories or compiler definitions. - honor more corners cases: - `INTERFACE_INCLUDE_DIRECTORIES` of the initial target. - handle no header directory for initial target. - de-duplicate header directories and compiler redefinitions to mimic CMake. - drop unnecessary `unset()`s. Note that the order of header directories remains different compared to how CMake passes them to the compiler when building tests. The order is already different in the test target `INCLUDE_DIRECTORIES` property, preventing to reproduce the exact CMake order. The distinction between `-I` and `-isystem` is also missing from target properties. Cherry-picked from #17768 Closes #17814
Changed files
- CMake/Macros.cmake