VS: Fix assertion failure on INCLUDE_DIRECTORIES in INTERFACE libraries
Since !5078 (merged), the VS generator may process INTERFACE libraries. Avoid code paths in the generator that process include directories because they should not be used by INTERFACE libraries since they do not compile anything.
Fixes: #22494 (closed)
Backport: release