OK, thanks. But somehow complicated. I wonder If I couldn't (miss)use the UPDATE_COMMAND for this. Can I use a macro as UPDATE_COMMAND?
My CMakeLists.txt looks like that right now: include(ExternalProject) SET(subprojects "core0" "core1" "core2") foreach(MYPROJ ${subprojects}) ExternalProject_Add( ${MYPROJ} SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/${MYPROJ} CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_CURRENT_SOURCE_DIR}/MyToolChain.cmake UPDATE_COMMAND "" INSTALL_COMMAND "" ) ExternalProject_Add_Step(${MYPROJ} rescan COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_SOURCE_DIR}/${MYPROJ}/CMakeLists.txt DEPENDEES forcebuild DEPENDERS build ALWAYS 1 ) ExternalProject_Add_Step(${MYPROJ} forcebuild COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_CURRENT_BUILD_DIR}/${MYPROJ}-prefix/src/${MYPROJ}-stamp/${MYPROJ}-build DEPENDEES configure DEPENDERS rescan ALWAYS 1 ) endforeach(MYPROJ) I tried to play a little bit around with the prefix dir to make this a little bit more sens full, but not a real success so far. Any better Idea? Next I need to link the Outputs of the three cores together. Can I somehow automatically get the targets from each subproject? I also like to improve the "touch" thing for my globbing procedure, but maybe I will discuss this separately in an other thread. thanks Arne -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake