MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0015454 | CMake | CMake | public | 2015-03-17 20:19 | 2015-11-02 09:13 | |||||
| Reporter | Daniel Dunbar | |||||||||
| Assigned To | Brad King | |||||||||
| Priority | normal | Severity | minor | Reproducibility | always | |||||
| Status | closed | Resolution | fixed | |||||||
| Platform | OS | OS Version | ||||||||
| Product Version | CMake 3.2.1 | |||||||||
| Target Version | CMake 3.3 | Fixed in Version | CMake 3.3 | |||||||
| Summary | 0015454: Ninja generator should not generate phony commands with cyclic dependency | |||||||||
| Description | The Ninja generator frequently will generate commands of the form: -- build testCCompiler.c: phony testCCompiler.c -- (taken from the build.ninja generated for the initial "-- Check for working C compiler using: Ninja" step). This command specifies a cyclic dependency, even though Ninja itself does not generally error on it: https://github.com/martine/ninja/issues/935 [^] | |||||||||
| Steps To Reproduce | Here is a self contained example: -- $ cat CMakeLists.txt cmake_minimum_required(VERSION 3.0) add_custom_command(OUTPUT foo.tmp DEPENDS foo.c COMMAND true) add_custom_target(foo DEPENDS foo.tmp) $ cmake -GNinja . -- Configuring done -- Generating done -- Build files have been written to: /tmp/foo $ grep "foo.c:" build.ninja build foo.c: phony foo.c -- | |||||||||
| Additional Information | ||||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | ||||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2015-03-17 20:19 | Daniel Dunbar | New Issue | ||||||||
| 2015-03-18 08:37 | Brad King | Note Added: 0038234 | ||||||||
| 2015-03-18 08:37 | Brad King | Relationship added | related to 0014963 | |||||||
| 2015-03-18 11:23 | Daniel Dunbar | Note Added: 0038236 | ||||||||
| 2015-03-18 13:05 | Brad King | Note Added: 0038237 | ||||||||
| 2015-03-18 13:05 | Brad King | Assigned To | => Brad King | |||||||
| 2015-03-18 13:05 | Brad King | Status | new => resolved | |||||||
| 2015-03-18 13:05 | Brad King | Resolution | open => fixed | |||||||
| 2015-03-18 13:05 | Brad King | Fixed in Version | => CMake 3.3 | |||||||
| 2015-03-18 13:05 | Brad King | Target Version | => CMake 3.3 | |||||||
| 2015-11-02 09:13 | Robert Maynard | Note Added: 0039736 | ||||||||
| 2015-11-02 09:13 | Robert Maynard | Status | resolved => closed | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||