Compiler warning flags for all except ExternalProjects

I like the approach of having an interface target. My problem then becomes trying to figure out what syntax for target_link_libraries to use.

target_link_libraries(mytgt PRIVATE buildflags) 

or

target_link_libraries(mytgt buildflags) 

Apperently it is not possible to mix syntax for target_link_libraries.