[CMake] Modification of link flags for all targets within a subdirectory -- how?
Ryan Pavlik
rpavlik at iastate.edu
Thu Sep 2 15:11:52 EDT 2010
On 9/2/2010 1:43 PM, Ingolf Steinbach wrote:
> 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
CMAKE_EXE_LINKER_FLAGS
http://cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_EXE_LINKER_FLAGS
I could have sworn there were matching variables for the other target
types, but I can't seem to find them on the online documentation.
Hope this helps!
Ryan
--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University
rpavlik at iastate.edu
http://academic.cleardefinition.com
Internal VRAC/HCI Site: http://tinyurl.com/rpavlik
More information about the CMake
mailing list