MantisBT - CMake
View Issue Details
0015474CMakeCMakepublic2015-03-25 13:182015-11-02 09:13
Andrey Vihrov 
Brad King 
normalminoralways
closedfixed 
Linux
CMake 3.2.1 
CMake 3.3CMake 3.3 
0015474: The "Unix Makefiles" generator should use .DELETE_ON_ERROR
The .DELETE_ON_ERROR special target in GNU Make ensures that if a command fails, then its corresponding target will be deleted. For example, if a linker OOMs halfway writing the final executable, then without .DELETE_ON_ERROR Make will consider that the (corrupted) executable has been built and refuse to rebuild it.

See also https://www.gnu.org/software/make/manual/html_node/Special-Targets.html#index-_002eDELETE_005fON_005fERROR [^] and https://www.gnu.org/software/make/manual/html_node/Errors.html#index-deletion-of-target-files [^] (last paragraph).
* Use the "Unix Makefiles" generator with a sample CMake project
* Verify that the generated Makefiles do not contain .DELETE_ON_ERROR
No tags attached.
Issue History
2015-03-25 13:18Andrey VihrovNew Issue
2015-03-31 11:30Brad KingAssigned To => Brad King
2015-03-31 11:30Brad KingStatusnew => assigned
2015-03-31 11:30Brad KingTarget Version => CMake 3.3
2015-04-01 13:18Brad KingNote Added: 0038383
2015-04-01 13:18Brad KingStatusassigned => resolved
2015-04-01 13:18Brad KingResolutionopen => fixed
2015-04-01 13:18Brad KingFixed in Version => CMake 3.3
2015-11-02 09:13Robert MaynardNote Added: 0039761
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038383)
Brad King   
2015-04-01 13:18   
Makefile: Tell GNU make to delete rule outputs on error
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4adf1dad [^]
(0039761)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.