[CMake] ExternalProject git update problem

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Sat Mar 26 12:43:46 EDT 2011


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
> 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
>
> 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/cf1f34fb/attachment.htm>


More information about the CMake mailing list