target_link_libraries does not use interface includes from subdirectory target
My project uses exported packages FOO and bar. Bar has targets in subdirectories abc, and dep (abc depends on dep). In the project, when I use target_link_libraries(TARGET foo:FOO bar:abc)
, only the include directory for foo is generated. The INTERFACE_INCLUDE_DIRECTORIES
for both foo:FOO
and bar:abc
look correct in the generated FOO-config.cmake
and bar-config.cmake
.
Edited by Brad King