We have a target that generates header files using a custom_target/custom_command pair in the “build/generated” directory, and then exports that directory with target_include_directories.
We recently switched one consumer of that target to use the COMPILE_ONLY generator when linking.
This creates an intermittent ordering issue in our build as the first target is no longer required to finish generating the header file before the consumer is built.
No; I think a dependency should be present exactly because of generated headers (generated INTERFACE source files as well…). @robert.maynard I assume this is an oversight? We “just” need to add a direct dependency AFAIK.