Table generation's add_custom_command will break when any of the
INCLUDE_DIRECTORIES uses generator-expressions.
Details
Details
- Reviewers
arphaman
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
What's a scenario where you'd end up with a generator expression in tblgen_includes? I'm concerned that stripping generator expressions just hides the problem.
Comment Actions
When adding LLVM as a cmake sub-project in a larger project, the larger project might have (and did have in my case) unrelated-to-LLVM generator-expression-wrapped includes.
To be clear, add_custom_command *does* support generator-expressions, just not things like COMPILE_LANGUAGE which give an error like:
$<COMPILE_LANGUAGE:...> may only be used to specify include directories, compile definitions, compile options, and to evaluate components of the file(GENERATE) command.
So in my case this isn’t hiding a bigger problem, but it could conceivably in some cases.