On 6. Jul, 2010, at 10:41 , Diablo 666 wrote: > > If I use SET with PARENT_SCOPE, wouldn't this delete old entries? Say I have > more than one subdirectory. Can I append entries from both subdirectories > this way?
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) Michael _______________________________________________ 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