Issue about PRIVATE in target_link_libraries

It’s how linking CMake targets works in general. This thread is very similar to your question: