Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Not sure if target_sources can be inside the for loop (i.e. does target_sources append to MLIRSparseTensorEnums, or does it rewrite it?). Did you check if it works if you have multiple headers?
Comment Actions
Per https://cmake.org/cmake/help/latest/command/target_sources.html: "Repeated calls for the same <target> append items in the order called."
It works as written for building things within llvm-project, though I don't have an external project set up for verifying that it works there too.
Comment Actions
I can confirm it doesn't work for my external project. I think because the INSTALL_INTERFACE generator needs to account for the include tree being separate from the lib source.
Added you as a review on the fix, @wrengr - https://reviews.llvm.org/D136649