Skip to content

CMakeLists.txt: Avoid include_directories

Thomas Ives requested to merge cmake-use-target-include-dirs into release/10.0.0

By using include_directories we are not setting the INTERFACE_INCLUDE_DIRECTORIES property, which means that targets linking against Tango::Tango will not have the correct include directories. This is not an issue for our tests as they "see" the include_directories command, but for projects that add cppTango as a subdirectory (e.g. TSD) this is a problem.

As we are doing some funny stuff with OBJECT libraries this requires a bit of re-jigging to make sure the various libraries have the correct INCLUDE_DIRECTORIES property.

Merge request reports