2018-02-06 13:15 GMT+03:00 Geogin Varghese <[hidden email]>:
> What is the recommended way of removing transitively inherited
> attributes for a target.
> target_link_libraries(A PRIVATE B)
> target_compile_options(B PUBLIC -Werror)
Shouldn't it be PRIVATE for B?
E.g. target_compile_options(B PRIVATE -Werror)
Each of the commands has a PRIVATE, PUBLIC and INTERFACE mode. The
PRIVATE mode populates only the non-INTERFACE_ variant of the target
property and the INTERFACE mode populates only the INTERFACE_
variants. The PUBLIC mode populates both variants of the respective