What version of CMake are you using? And what generator?<div><br><br>On Saturday, April 18, 2015, typ1232 <<a href="mailto:dummdoof-doof@web.de">dummdoof-doof@web.de</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
The command is used as follows:<br>
<br>
INCLUDE(ExternalProject)<br>
ExternalProject_Add(name<br>
    GIT_REPOSITORY <a href="https://bitbucket.org/foo/bar.git" target="_blank">https://bitbucket.org/foo/bar.git</a><br>
    GIT_TAG 0fcae6c2c975b309b38b8c84ac681b6bf3ae12e7<br>
    CMAKE_ARGS ""<br>
    INSTALL_COMMAND ""<br>
)<br>
This downloads and builds the project successfully, but if I change the<br>
GIT_TAG value, cmake only checks out the other commit. The project is not<br>
rebuilt.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://cmake.3232098.n2.nabble.com/Do-build-after-GIT-TAG-changed-in-ExternalProject-Add-tp7590299.html" target="_blank">http://cmake.3232098.n2.nabble.com/Do-build-after-GIT-TAG-changed-in-ExternalProject-Add-tp7590299.html</a><br>
Sent from the CMake mailing list archive at Nabble.com.<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote></div>