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                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to