add_library: Fix INTERFACE on platforms with no shared libs (#14561)
Merge branch 'fix-INTERFACE-with-no-SHARED-libs' into next