The imported target created by cmake sets the INTERFACE_INCLUDE_DIRECTORIES property of the target to the installed include directory. CMake will complain that the target is using a non existent directory if we remove it in the post processing step.
This will fix the issue from D14855, which can be reverted in a follow-up.