[CMake] Recursive list append
Marcel Loose
loose at astron.nl
Tue Jul 6 04:17:42 EDT 2010
Hi Andreas,
Use 'set(<variable> <value> PARENT_SCOPE])'. This will set the variable
in the scope directly above the current scope. Remember that each
add_subdirectory() will create a new scope.
HTH,
Marcel Loose.
On Tue, 2010-07-06 at 10:06 +0200, Diablo 666 wrote:
> Hi,
>
> say I create a list in the top level CMakeLists.txt and call a
> subdirectory. The subdirectory should add some entries to the list,
> then the top level should use the full list. How can I accomplish
> this?
>
> Best regards,
> Andreas
>
>
> ______________________________________________________________________
> Räumen Sie Ihr Postfach auf - ganz einfach mit Hotmail!
> _______________________________________________
> 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
More information about the CMake
mailing list