OSX shared libraries incorrectly add static libraries to it's LINK_INTERFACE_LIBRARIES with the Xcode generator
This script seems to incorrectly add static libraries to the LINK_INTERFACE_LIBRARIES of 'b' on macOS at least, with the Xcode generator:
add_library(a STATIC ...)
add_library(b SHARED ...)
target_link_libraries(b PUBLIC a)
This causes another executable/library that consumes b to try and link with a. Using ninja this seems to not happen