[CMake] ExternalProject git update problem

Sascha Zelzer s.zelzer at dkfz-heidelberg.de
Sat Mar 26 14:11:32 EDT 2011


Hi Jc,

yes, I did. Actually "origin/master" for most of our dartclients.

Thanks,

Sascha

On 03/26/2011 05:43 PM, Jean-Christophe Fillion-Robin wrote:
> Hi Sasha,
>
> Out of curiosity, what's the value of PROJ_GIT_BRANCH ?
>
> Did you specify <REMOTE_NAME>/<BRANCH_NAME>. For example: "master/origin"
>
> Jc
>
> On Sat, Mar 26, 2011 at 11:54 AM, Sascha Zelzer 
> <s.zelzer at dkfz-heidelberg.de <mailto:s.zelzer at dkfz-heidelberg.de>> wrote:
>
>     Hi,
>
>     we are using the ExternalProject module from CMake 2.8.4 and are
>     observing a strange git update problem on Windows 7 when running a
>     CTest script (using the new-style ctest_build, etc. commands).
>
>     Our ExternalProject_Add call essentially looks like this:
>
>     ExternalProject_Add(${proj}
>        GIT_REPOSITORY "${PROJ_GIT_REPOSITORY}"
>        GIT_TAG "${PROJ_GIT_BRANCH}"
>        BINARY_DIR ${PROJ_BINARY_DIR}
>        INSTALL_COMMAND ""
>        CMAKE_GENERATOR ${gen}
>        CMAKE_ARGS
>          ${ep_common_args}
>          -DBUILD_SHARED_LIBS:BOOL=ON
>        DEPENDS
>          ${proj_DEPENDENCIES}
>        )
>
>
>     In the CTest script, when calling:
>
>     set(CTEST_BUILD_TARGET ${proj})
>     ctest_build(BUILD "${build_dir}" APPEND)
>
>     a message gets printed on the console (in extra verbose mode),
>     telling that it runs the update step for the external project, but
>     it actually does not update the git repository. Strangely, I was
>     able to "fix" this problem by playing around in
>     ExternalProject.cmake (from CMake 2.8.4) and adding the following
>     line at line 894:
>
>     set(comment "${comment}, command: ${command}")
>
>     It then does not print the comment anymore, but rather prints the
>     used git command line arguments (again in extra verbose mode) and
>     actually updates the repository.
>
>     Does anybody know what the reason for this strange behavior could be?
>
>     Thanks,
>
>     Sascha
>     _______________________________________________
>     Powered by www.kitware.com <http://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
>
>
>
>
> -- 
> +1 919 869 8849
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110326/e3b31b2c/attachment.htm>


More information about the CMake mailing list