Unexpected behavior when using target_sources

Alright that makes a whole lot of sense. Thanks for the help.