MantisBT - CMake
View Issue Details
0015368CMakeCMakepublic2015-01-23 01:182015-06-01 08:38
peitschie 
 
normalminoralways
closedfixed 
CMake 3.1 
CMake 3.2CMake 3.2 
0015368: ExternalProject's BUILD_ALWAYS flag doesn't clear any existing build stamp file
Setting the BUILD_ALWAYS flag on an external project should cause the build step to always trigger. This was new in 3.1 from what I can see. Unfortunately, it appears to do this by making the *next* stamp file created symbolic (see https://github.com/Kitware/CMake/blob/master/Modules/ExternalProject.cmake#L1457 [^]). This means that until the existing stamp file is deleted, or something else causes a rebuild to occur, BUILD_ALWAYS has no effect
1. Create a CMake file with an external project, with BUILD_ALWAYS set to 0
2. Build the external project
3. Change the BUILD_ALWAYS flag to 1
4. Attempt to rebuild the external project, and note how the build step is never executed.
No tags attached.
patch 0001-ExternalProject-Allow-ALWAYS-step-property-to-be-swi.patch (1,472) 2015-01-23 13:39
https://public.kitware.com/Bug/file/5359/0001-ExternalProject-Allow-ALWAYS-step-property-to-be-swi.patch
Issue History
2015-01-23 01:18peitschieNew Issue
2015-01-23 13:39Brad KingFile Added: 0001-ExternalProject-Allow-ALWAYS-step-property-to-be-swi.patch
2015-01-23 13:39Brad KingNote Added: 0037789
2015-01-23 16:43peitschieNote Added: 0037800
2015-01-26 08:49Brad KingNote Added: 0037807
2015-01-26 08:49Brad KingStatusnew => resolved
2015-01-26 08:49Brad KingResolutionopen => fixed
2015-01-26 08:49Brad KingFixed in Version => CMake 3.2
2015-01-26 08:49Brad KingTarget Version => CMake 3.2
2015-06-01 08:38Robert MaynardNote Added: 0038857
2015-06-01 08:38Robert MaynardStatusresolved => closed

Notes
(0037789)
Brad King   
2015-01-23 13:39   
Please try "0001-ExternalProject-Allow-ALWAYS-step-property-to-be-swi.patch".
(0037800)
peitschie   
2015-01-23 16:43   
Thanks for the rapid response! I can confirm this fixes the issue. Thanks!
(0037807)
Brad King   
2015-01-26 08:49   
Thanks for testing. Patch applied:

 ExternalProject: Allow ALWAYS step property to be switched
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=a4605973 [^]
(0038857)
Robert Maynard   
2015-06-01 08:38   
Closing resolved issues that have not been updated in more than 4 months.