MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013139 | CMake | CMake | public | 2012-04-16 18:20 | 2012-09-03 16:01 |
Reporter | mwoehlke | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | x86_64 | OS | Fedora | OS Version | 17 |
Product Version | |||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | ||
Summary | 0013139: ninja does not rebuild external projects | ||||
Description | External projects are not rebuilt when their sources change when using the ninja generator (using CMake 2.8.8-rc2). It appears that even when removing the build stamp to force a build, ninja is not re-run for the external project. When using the Unix Makefiles generator, all is well. | ||||
Steps To Reproduce | - Set up an external project using the following snippet: ExternalProject_Add(foo DEPENDS ${BUILD_FOO_DEPENDENCY} SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/foo BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/foo INSTALL_DIR ${CMAKE_INSTALL_PREFIX} ) ExternalProject_Add_Step(foo forcebuild COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_CURRENT_BUILD_DIR}/foo-prefix/src/foo-stamp/foo-build DEPENDEES configure DEPENDERS build ALWAYS 1 ) - Generate two build trees; one with ninja, and one with makefiles. - Build both build trees. - Touch a source file in the subproject - Rebuild both build trees. The makefiles build tree rebuilds the external project 'foo'. The ninja build tree reports: [1/1] Performing forcebuild step for 'foo' ...and does not rebuild 'foo'. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-04-16 18:20 | mwoehlke | New Issue | |||
2012-04-17 14:38 | David Cole | Note Added: 0029203 | |||
2012-04-18 13:08 | mwoehlke | Note Added: 0029217 | |||
2012-04-18 13:39 | Brad King | Note Added: 0029221 | |||
2012-04-18 13:56 | mwoehlke | Note Added: 0029222 | |||
2012-04-18 14:16 | Brad King | Status | new => resolved | ||
2012-04-18 14:16 | Brad King | Resolution | open => no change required | ||
2012-04-18 14:16 | Brad King | Assigned To | => Brad King | ||
2012-04-18 14:33 | David Cole | Fixed in Version | => CMake 2.8.8 | ||
2012-04-18 14:33 | David Cole | Target Version | => CMake 2.8.8 | ||
2012-09-03 16:01 | David Cole | Note Added: 0030856 | |||
2012-09-03 16:01 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|