[CMake] Removing Transitively Inherited Properties

Geogin Varghese geogin at gmail.com
Tue Feb 6 05:15:49 EST 2018


What is the recommended way of removing transitively inherited
attributes for a target.

Example:
target_link_libraries(A PRIVATE B)
target_compile_options(B PUBLIC -Werror)

How should the -Werror option be removed from target A.


More information about the CMake mailing list