[cmake-developers] [CMake 0011927]: ExternalProject: git clone step always runs when using "Visual Studio 10" generator

Mantis Bug Tracker mantis at public.kitware.com
Fri Mar 4 10:12:00 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11927 
====================================================================== 
Reported By:                David Cole
Assigned To:                David Cole
====================================================================== 
Project:                    CMake
Issue ID:                   11927
Category:                   Modules
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     assigned
Target Version:             CMake 2.8.5
====================================================================== 
Date Submitted:             2011-03-04 10:12 EST
Last Modified:              2011-03-04 10:12 EST
====================================================================== 
Summary:                    ExternalProject: git clone step always runs when
using "Visual Studio 10" generator
Description: 
As reported on the CMake mailing list, the git clone step always runs again on
2nd and later builds, even though the 1st build was completely successful.

This is really annoying, as it always leads to full rebuilds, because the git
clone code blows away the source tree first, and does a fresh clone when it
runs...

Steps to Reproduce: 
# CMakeLists.txt:
# ==========================================================================
cmake_minimum_required(VERSION 2.8.4)
project(SAF-ext)
include(ExternalProject)
EXTERNALPROJECT_ADD(
  SAF-ext
  GIT_REPOSITORY "git://github.com/dlrdave/SmallAndFast.git"
  GIT_TAG "5e98e304a464946dd34cb4c53eb3dd1fd348781b"
  CMAKE_ARGS
    -DSAF_INTENTIONAL_COMPILE_ERROR:BOOL=OFF
  INSTALL_COMMAND ""
  UPDATE_COMMAND ""
  )

# Save these steps to repro as a CMakeLists.txt file
# (1) Run this:
#    mkdir b1
#    cd b1
#    cmake -G "Visual Studio 10" ..
# (2) Open solution file in Visual Studio 10
# (3) Build -- allow to finish all the way
# (4) Build again
#
# Expected:
#   2nd build should build nothing as everything is up to date
#
# Actual:
#   2nd build builds evertyhing again, starting with the mkdir steps,
#   and continuing on down through git clone and all the rest...

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-04 10:12 David Cole     New Issue                                    
2011-03-04 10:12 David Cole     Status                   new => assigned     
2011-03-04 10:12 David Cole     Assigned To               => David Cole      
======================================================================




More information about the cmake-developers mailing list