[cmake-developers] [CMake 0014280]: rc-files are not regenrated/recompiled if included files change

Mantis Bug Tracker mantis at public.kitware.com
Mon Jul 8 17:57:36 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14280 
====================================================================== 
Reported By:                Daniel Franke
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14280
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-08 17:57 EDT
Last Modified:              2013-07-08 17:57 EDT
====================================================================== 
Summary:                    rc-files are not regenrated/recompiled if included
files change
Description: 
This is a follow-up to http://public.kitware.com/Bug/view.php?id=4068.

Windows resources (.rc) may make use of preprocessor macros, not limited to, but
including '#include <filename>' [1]. 

Consider a generated project.h that defines:
#define PROJECT_REVISION ...

and project.rc:
#include "project.h"
VS_VERSION_INFO VERSIONINFO
...
     VALUE "FileVersion",      PROJECT_REVISION
...

Obviously PROJECT_REVISION may change which regenerates project.h, but
project.rc does not depend on project.h and hence is not regenerated/rebuilt.
Hence the "FileVersion" in the Properties -> Version tab may be outdated.

Thus: .rc files should be scanned for #include and depend on those.


[1]
http://msdn.microsoft.com/en-us/library/windows/desktop/aa381058%28v=vs.85%29.aspx

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-08 17:57 Daniel Franke  New Issue                                    
======================================================================




More information about the cmake-developers mailing list