MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0005785 | CMake | CMake | public | 2007-09-26 12:50 | 2008-05-01 10:22 |
| Reporter | ufnoise | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Summary | 0005785: cmake fails to run tests if the file "test" exists. | ||||
| Description | A proper gnu makefile would mark the test target as phony. Looking at the gnu makefile generated by one of my cmake projects, test is not marked as phony. If a file named test exists, then the tests will no longer run. Example below. Please mark test, install, and any other dummy target as PHONY in the generated Makefile. If I "touch test", the test no longer runs. If I add the PHONY target to the Makefile. The tests still run. ~/bar> make test Running tests... Start processing tests Test project /home/juans/bar 1/ 1 Testing foo Passed 100% tests passed, 0 tests failed out of 1 ~/bar> make test Running tests... Start processing tests Test project /home/juans/bar 1/ 1 Testing foo Passed 100% tests passed, 0 tests failed out of 1 ~/bar> touch test ~/bar> make test ~/bar> ~/bar> echo ".PHONY: test" >> Makefile ~/bar> make test Running tests... Start processing tests Test project /home/juans/bar 1/ 1 Testing foo Passed | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2007-09-26 12:50 | ufnoise | New Issue | |||
| 2007-09-26 13:47 | Justin | Note Added: 0009301 | |||
| 2007-10-12 09:48 | Bill Hoffman | Status | new => assigned | ||
| 2007-10-12 09:48 | Bill Hoffman | Assigned To | => Brad King | ||
| 2008-05-01 10:22 | Brad King | Status | assigned => closed | ||
| 2008-05-01 10:22 | Brad King | Note Added: 0011644 | |||
| 2008-05-01 10:22 | Brad King | Resolution | open => fixed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||