[CMake] Modification of link flags for all targets within a subdirectory -- how?
Ryan Pavlik
rpavlik at iastate.edu
Thu Sep 2 13:17:36 EDT 2010
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.
Hope this helps!
Ryan
On 9/2/2010 11:11 AM, Ingolf Steinbach wrote:
> Hi,
>
> how can link flags be modified (augmented) for *all* targets within a
> given sub-directory (recursively) of a project? To clarify: I do not
> want to modify the project-wide link flags. Just for a certain part
> within the project.
>
> Kind regards
> Ingolf
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
--
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