From 4a3c19a5835de0049cdb2acea7be8ffeaff08aba Mon Sep 17 00:00:00 2001 From: Justin Goshi Date: Wed, 29 Nov 2017 12:48:26 -0800 Subject: Windows: Fix version embedding in CMake binaries In commit 5b9da05b7a (Windows: Embed version information into CMake binaries, 2017-10-25) we left out `` 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 --- Source/CMakeVersion.rc.in | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v0.12