MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015256 | CMake | CMake | public | 2014-11-18 18:14 | 2016-06-10 14:31 | |||||
Reporter | Stephen Kelly | |||||||||
Assigned To | Ben Boeckel | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||
Status | closed | Resolution | moved | |||||||
Platform | OS | OS Version | ||||||||
Product Version | ||||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0015256: Ninja handling of CMake depends and output files is not correct | |||||||||
Description | Given this test code: cmake_minimum_required(VERSION 2.8) project(cmaketest) configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/input_file.txt" "${CMAKE_CURRENT_BINARY_DIR}/confi_file.txt" ) If cmake is run, then input_file.txt is touched, then ninja is run, then ninja correctly re-runs cmake, but also reports that no work need be done: $ ninja [1/1] Re-running CMake... -- Configuring done -- Generating done -- Build files have been written to: /home/stephen/dev/src/playground/cmake/build ninja: no work to do. If confi_file.txt is then deleted, and ninja is run, ninja does not re-run cmake to re-create the output file. The same 'no work to do' message can be seen by creating a try_compile: try_compile(RES "${CMAKE_CURRENT_BINARY_DIR}/testbin" "${CMAKE_CURRENT_SOURCE_DIR}/tc_input.cpp" ) message("RES: ${RES}") Run cmake, and change the tc_input.cpp. this->Makefile->AddCMakeDependFile(this->Input.c_str()); and this->Makefile->AddCMakeOutputFile(outputFileName.c_str()); are called at the appropriate places, but the appropriate Ninja content is apparently not created. | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-11-18 18:14 | Stephen Kelly | New Issue | ||||||||
2014-11-19 10:23 | Brad King | Relationship added | related to 0014963 | |||||||
2014-11-19 10:25 | Brad King | Note Added: 0037233 | ||||||||
2014-11-19 10:25 | Brad King | Target Version | => CMake 3.2 | |||||||
2014-11-19 10:25 | Brad King | Description Updated | bug_revision_view_page.php?rev_id=1624#r1624 | |||||||
2014-12-01 14:34 | Brad King | Note Added: 0037340 | ||||||||
2014-12-01 14:37 | Brad King | Note Added: 0037341 | ||||||||
2015-01-20 14:57 | Ben Boeckel | Note Added: 0037758 | ||||||||
2015-01-20 15:29 | Ben Boeckel | Note Added: 0037759 | ||||||||
2015-01-21 13:20 | Ben Boeckel | Note Added: 0037762 | ||||||||
2015-01-21 13:20 | Ben Boeckel | Assigned To | => Ben Boeckel | |||||||
2015-01-21 13:20 | Ben Boeckel | Status | new => feedback | |||||||
2015-01-23 09:35 | Brad King | Note Added: 0037787 | ||||||||
2015-01-26 16:36 | Ben Boeckel | Note Added: 0037823 | ||||||||
2015-01-26 16:43 | Ben Boeckel | Note Added: 0037824 | ||||||||
2015-02-04 15:35 | Brad King | Note Added: 0037915 | ||||||||
2015-02-04 15:35 | Brad King | Status | feedback => acknowledged | |||||||
2015-02-04 15:35 | Brad King | Target Version | CMake 3.2 => | |||||||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042671 | ||||||||
2016-06-10 14:29 | Kitware Robot | Status | acknowledged => resolved | |||||||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|