MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0011928 | CMake | CMake | public | 2011-03-04 12:00 | 2015-07-08 08:57 |
Reporter | Nicolas Despres | ||||
Assigned To | Stephen Kelly | ||||
Priority | low | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | i686 | OS | Ubuntu | OS Version | 10.10 |
Product Version | CMake 2.8.4 | ||||
Target Version | Fixed in Version | CMake 2.8.12 | |||
Summary | 0011928: Wrong percentage value with Makefile generator. | ||||
Description | It seems that the Makefile generator does not count custom commands but only targets. I would have expect that it counts both. | ||||
Steps To Reproduce | $ cat CMakeLists.txt cmake_minimum_required(VERSION 2.8.4) project(cmake_wrong_percentage) # Generate input files. foreach(i RANGE 1 10) file(WRITE "${PROJECT_SOURCE_DIR}/file${i}" "content ${i}") endforeach(i) # Add one custom command for each input file. set(OUTPUT_FILES "") foreach(i RANGE 1 10) set(input "file${i}") set(output "${PROJECT_BINARY_DIR}/${input}.out") add_custom_command( OUTPUT ${output} COMMAND ${CMAKE_COMMAND} -E copy "${input}" "${output}" DEPENDS ${input} COMMENT "Copying ${output}" WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} VERBATIM ) list(APPEND OUTPUT_FILES "${output}") endforeach(i) # Add the target that trigger the custom commands. add_custom_target(copy DEPENDS ${OUTPUT_FILES} ) $ mkdir _build $ cd _build $ cmake .. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Configuring done -- Generating done -- Build files have been written to: /home/despre_n/src/test/cmake-wrong-percentage/_build $ make copy Scanning dependencies of target copy [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file1.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file2.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file3.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file4.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file5.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file6.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file7.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file8.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file9.out [ 0%] Copying /home/despre_n/src/test/cmake-wrong-percentage/_build/file10.out [100%] Built target copy | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-03-04 12:00 | Nicolas Despres | New Issue | |||
2012-08-11 11:09 | David Cole | Status | new => backlog | ||
2012-08-11 11:09 | David Cole | Note Added: 0030238 | |||
2015-02-26 14:00 | Stephen Kelly | Note Added: 0038081 | |||
2015-02-26 14:00 | Stephen Kelly | Status | backlog => resolved | ||
2015-02-26 14:00 | Stephen Kelly | Fixed in Version | => CMake 2.8.12 | ||
2015-02-26 14:00 | Stephen Kelly | Resolution | open => fixed | ||
2015-02-26 14:00 | Stephen Kelly | Assigned To | => Stephen Kelly | ||
2015-07-08 08:57 | Robert Maynard | Note Added: 0039070 | |||
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|