diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2017-11-29 12:48:26 -0800 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-30 10:42:26 -0500 |
commit | 4a3c19a5835de0049cdb2acea7be8ffeaff08aba (patch) | |
tree | 329bb1a56427313f07172485e90ba37aa3bd50ea /Source/CMakeVersion.rc.in | |
parent | c2ea729c87cee2fb19d34090ef00e42d12fb59f2 (diff) | |
download | cmake-4a3c19a5835de0049cdb2acea7be8ffeaff08aba.tar.gz |
Windows: Fix version embedding in CMake binaries
In commit 5b9da05b7a (Windows: Embed version information into CMake
binaries, 2017-10-25) we left out `<winres.h>` since MinGW does not have
the header, but it is needed for the `VS_VERSION_INFO` macro. Provide
the macro ourselves.
Suggested-by: Christian Pfeiffer <cpfeiffer@live.de>
Diffstat (limited to 'Source/CMakeVersion.rc.in')
-rw-r--r-- | Source/CMakeVersion.rc.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CMakeVersion.rc.in b/Source/CMakeVersion.rc.in index f4ca3d5dc8..60e14e5c0b 100644 --- a/Source/CMakeVersion.rc.in +++ b/Source/CMakeVersion.rc.in @@ -7,6 +7,9 @@ #define VER_PRODUCTVERSION @CMake_VERSION_MAJOR@,@CMake_VERSION_MINOR@,@CMake_VERSION_PATCH@ #define VER_PRODUCTVERSION_STR "@CMake_VERSION@\0" +/* Version-information resource identifier. */ +#define VS_VERSION_INFO 1 + VS_VERSION_INFO VERSIONINFO FILEVERSION VER_FILEVERSION PRODUCTVERSION VER_PRODUCTVERSION |