[CMake] Modification of link flags for all targets within a subdirectory -- how?

Ingolf Steinbach ingolf.steinbach at googlemail.com
Thu Sep 2 14:43:12 EDT 2010


Hi,

2010/9/2 Ryan Pavlik <rpavlik at iastate.edu>:
>  Set the appropriate variables at the top of the CMakeLists.txt file of the
> given subdirectory.  Each add_subdirectory call creates a new scope, so
> variables set in sub-directories do not propagate to parents unless
> specifically told to.

But which variables would I have to set? Up to now I have used
set_target_properties(... LINK_FLAGS ...).

Kind regards
Ingolf


More information about the CMake mailing list