summaryrefslogtreecommitdiffstats
path: root/Source/CMakeVersion.rc.in
diff options
context:
space:
mode:
authorJustin Goshi <jgoshi@microsoft.com>2017-11-29 20:48:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-30 15:42:26 (GMT)
commit4a3c19a5835de0049cdb2acea7be8ffeaff08aba (patch)
tree329bb1a56427313f07172485e90ba37aa3bd50ea /Source/CMakeVersion.rc.in
parentc2ea729c87cee2fb19d34090ef00e42d12fb59f2 (diff)
downloadCMake-4a3c19a5835de0049cdb2acea7be8ffeaff08aba.zip
CMake-4a3c19a5835de0049cdb2acea7be8ffeaff08aba.tar.gz
CMake-4a3c19a5835de0049cdb2acea7be8ffeaff08aba.tar.bz2
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.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CMakeVersion.rc.in b/Source/CMakeVersion.rc.in
index f4ca3d5..60e14e5 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