[clang] NFC: Make clang resource headers an interface library (PR #88317)

Evan Wilde via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 10 14:30:30 PDT 2024


================
@@ -501,6 +501,10 @@ add_header_target("windows-resource-headers" ${windows_only_files})
 add_header_target("utility-resource-headers" ${utility_files})
 
 get_clang_resource_dir(header_install_dir SUBDIR include)
+target_include_directories(clang-resource-headers INTERFACE
+  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
----------------
etcwilde wrote:

Good point. I think I was trying to see if I could remove one set of header copies, but didn't actually remove that bit. Let me point it at the intermediate directory in the build directory instead which should only contain the headers for the targets we've configured LLVM for.

https://github.com/llvm/llvm-project/pull/88317


More information about the cfe-commits mailing list