[cmake-developers] [CMake 0012412]: Visual studio 2010 doesn't execute dependent steps.

Mantis Bug Tracker mantis at public.kitware.com
Fri Aug 19 01:41:53 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12412 
====================================================================== 
Reported By:                Yuri
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12412
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-08-19 01:41 EDT
Last Modified:              2011-08-19 01:41 EDT
====================================================================== 
Summary:                    Visual studio 2010 doesn't execute dependent steps.
Description: 
I'm trying to force rebuild of external project when some files in my system
change. To do this I added custom build step which depends on file and build
step depends on it.

But it seems that Visual Studio 2010 checks dependencies for custom build tool
only once and computes targets which will be built (it has one target called
"Custom build tool").

So to trigger build of external project I has to run build twice.

Steps to Reproduce: 
See attached project.

Additional Information: 
Log from first build:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: Subproject, Configuration: Debug Win32 ------
2>  Files in external project changed, triggering build.
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>  Build all projects
========== Build: 3 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

>From second build:
1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
2>------ Build started: Project: Subproject, Configuration: Debug Win32 ------
2>  Performing build step for 'Subproject'
2>  
2>  
2>  Microsoft (R) Visual Studio Version 10.0.40219.1.
2>  
2>  Copyright (C) Microsoft Corp. All rights reserved.
2>  
2>  1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32
------
2>  
2>  2>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32
------
2>  
2>  2>  Build all projects
2>  
2>  ========== Build: 2 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
2>  
2>  Performing install step for 'Subproject'
2>  
2>  
2>  Microsoft (R) Visual Studio Version 10.0.40219.1.
2>  
2>  Copyright (C) Microsoft Corp. All rights reserved.
2>  
2>  1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32
------
2>  
2>  2>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32
------
2>  
2>  2>  Build all projects
2>  
2>  3>------ Build started: Project: INSTALL, Configuration: Debug Win32 ------
2>  
2>  3>  -- Install configuration: "Debug"
2>  
2>  3>  -- Up-to-date: C:/Program Files/othertest/./otherlib.lib
2>  
2>  ========== Build: 3 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========
2>  
2>  Completed 'Subproject'
3>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------
3>  Build all projects
========== Build: 3 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

As you can see, on the second run VS understands that file changed and triggers
action.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-08-19 01:41 Yuri           New Issue                                    
2011-08-19 01:41 Yuri           File Added: ep_customstep_test.zip              
     
======================================================================




More information about the cmake-developers mailing list