The following issue has been SUBMITTED. 
====================================================================== 
http://www.itk.org/Bug/view.php?id=12441 
====================================================================== 
Reported By:                vastevaste
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12441
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-09-01 23:35 EDT
Last Modified:              2011-09-01 23:35 EDT
====================================================================== 
Summary:                    No progress reporting for add_custom_command
Description: 
Progress reporting doesn't seem to work for individual rules added by
add_custom_commands. Progress isn't updated until the add_custom_target-target
is built.

Is this intentional?

I get this:

$ make
[  0%] Generating test1.txt
[  0%] Generating test2.txt
[  0%] Generating test3.txt
[  0%] Generating test4.txt
[  0%] Generating test5.txt
[  0%] Generating test6.txt
[100%] Built target test

But I expected this:

$ echo include CMakeFiles/test.dir/progress.make >> 
CMakeFiles/test.dir/build.make
$ make clean && make
[ 16%] Generating test1.txt
[ 33%] Generating test2.txt
[ 50%] Generating test3.txt
[ 66%] Generating test4.txt
[ 83%] Generating test5.txt
[100%] Generating test6.txt
[100%] Built target test


Additional Information: 
The generated build file looks like this:

test1.txt:
        $(CMAKE_COMMAND) -E cmake_progress_report
/home/vaste/src/cmaketest/build/CMakeFiles $(CMAKE_PROGRESS_1)
        @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --blue --bold
"Generating test1.txt"
        touch test1.txt

But VERBOSE=1 shows this (without $(CMAKE_PROGRESS_1)):

/home/vaste/src/cmake-2.8.5/build/bin/cmake -E cmake_progress_report
/home/vaste/src/cmaketest/build/CMakeFiles
[  0%] Generating test1.txt
touch test1.txt

If I manually include progress.make in build.make it seems to work. Like this:

$ echo include CMakeFiles/test.dir/progress.make >> 
CMakeFiles/test.dir/build.make
$ make clean && make
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-09-01 23:35 vastevaste     New Issue                                    
2011-09-01 23:35 vastevaste     File Added: CMakeLists.txt                    
======================================================================

_______________________________________________
cmake-developers mailing list
cmake-developers@cmake.org
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to