<div dir="ltr">Hi All,<div><br></div><div>I have a component similar to this setup ...</div><div><br></div><div>  project(foo LANGUAGES CXX CUDA)</div><div><br></div><div>  add_library(foo INTERFACE)</div><div>  target_include_directories(foo INTERFACE <foo_dir>)</div><div><br></div><div>  add_library(bar OBJECT <a href="http://bar.cu">bar.cu</a>)</div><div>  target_link_libraries(bar PUBLIC foo)</div><div><br></div><div>When building <b>bar</b>, there is no "-I <foo_dir>" in the command line fed to nvcc and the needed headers are therefore not available. I only see this issue with object libraries.</div><div><br></div><div>I've tried using PRIVATE and INTERFACE instead of PUBLIC when defining the link library specification for <b>bar </b>with no luck.</div><div><br></div><div>I'm trying to figure out if this is supposed to work, or a known limitation.</div><div><br></div><div>Thanks!</div></div>