<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body>
<span id="mailbox-conversation"><div>I agree with Andrey, there should be a way to use interface library type with generated headers.</div>
<div><br></div>
<div>There's a workaround but it involves manual set up of extra dependencies solely for dependency tracking. You have to add dependency between a target which consumes the generated headers and a custom target which directly depends on the output of a custom command along with adding interface library into target_link_libraries of the consumer. Each additional target of the generated headers would require the extra dependency set up.</div>
<div><br></div>
<div>It would be much more natural to add a dependency between interface library and the custom target. </div>
<div><br></div>
<div>Thanks,</div>
<div>Roman</div></span><span class="none"></span>
</body></html>