[CMake] Recursive list append
Diablo 666
thediablo666 at hotmail.de
Tue Jul 6 04:58:18 EDT 2010
> CMakeLists.txt:
> ###############
> set(some_list val1 val2 val3)
> add_subdirectory(subdir)
> message(STATUS "some_list = ${some_list}")
>
> subdir/CMakeLists.txt:
> ######################
> # append in local scope
> list(APPEND some_list val4 val5 val6)
> # set in parent scope
> set(some_list "${some_list}" PARENT_SCOPE)
this is ugly. Really ugly. I like it :-D
Thanks a lot!
_________________________________________________________________
http://redirect.gimas.net/?n=M1007xHMTL4
Künftig E-Mails über Hotmail ohne Werbung versenden!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100706/a9bd9672/attachment.htm>
More information about the CMake
mailing list