In your code building library b, you must tell CMake that b depends on:
target_link_libraries(b a)
Then, your library / application c can only reference what it uses, and there is no need to worry about dependency dependencies:
target_link_libraries(c b)
Library a will be delivered to you.