[CMake] ExternalProject_add and add_subdirectory in one step

2015-02-05 Thread Franz Engel
Hi, I try to clone an repository from my bare-repository and to build my project tree. Therefore I use the following commands: ExternalProject_Add ( demoA PREFIX ${MAIN_PATH}/demoA GIT_REPOSITORY ${REPOSITORY_PATH}/demoA GIT_TAG origin/master UPDATE_COMMAND ""

Re: [CMake] ExternalProject_add and add_subdirectory in one step

2015-02-06 Thread Petr Kmoch
Hi Franz. The "canonical" approach to ExternalProject is to use a "superbuild" setup. Design your top-level CMakeList so that it *only* contains ExternalProject_add() calls, treating your "original" project as just another external project. Build the superbuild once, getting all the dependencies d