diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 51543bc3..94d675f8 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -59,8 +59,9 @@ if(USE_VTK) VTK::IOXML VTK::IOGeometry VTK::FiltersGeneral) - get_target_property(MOORDYN_PRIVATE_INCLUDE_DIRS VTK::CommonCore - INCLUDE_DIRECTORIES) + get_target_property(MOORDYN_PRIVATE_INCLUDE_DIRS + VTK::CommonCore + INTERFACE_INCLUDE_DIRECTORIES) else() list(APPEND MOORDYN_PUBLIC_DEPS VTK::CommonCore VTK::IOCore