diff options
author | Justin Goshi <jgoshi@microsoft.com> | 2017-10-25 20:02:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-31 14:02:25 (GMT) |
commit | 5b9da05b7acc27ce40d27afcda0029284a0a4590 (patch) | |
tree | fe9f8a6d796128c20fef9139ee5f04edc4dde2d5 /Source/CMakeVersion.rc.in | |
parent | 206354ac4c2b0e245cc02f3c9f8b82990f829ee8 (diff) | |
download | CMake-5b9da05b7acc27ce40d27afcda0029284a0a4590.zip CMake-5b9da05b7acc27ce40d27afcda0029284a0a4590.tar.gz CMake-5b9da05b7acc27ce40d27afcda0029284a0a4590.tar.bz2 |
Windows: Embed version information into CMake binaries
Diffstat (limited to 'Source/CMakeVersion.rc.in')
-rw-r--r-- | Source/CMakeVersion.rc.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Source/CMakeVersion.rc.in b/Source/CMakeVersion.rc.in new file mode 100644 index 0000000..f4ca3d5 --- /dev/null +++ b/Source/CMakeVersion.rc.in @@ -0,0 +1,34 @@ +/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying + file Copyright.txt or https://cmake.org/licensing for details. */ + +#define VER_FILEVERSION @CMake_VERSION_MAJOR@,@CMake_VERSION_MINOR@,@CMake_VERSION_PATCH@ +#define VER_FILEVERSION_STR "@CMake_VERSION_MAJOR@.@CMake_VERSION_MINOR@.@CMake_VERSION_PATCH@\0" + +#define VER_PRODUCTVERSION @CMake_VERSION_MAJOR@,@CMake_VERSION_MINOR@,@CMake_VERSION_PATCH@ +#define VER_PRODUCTVERSION_STR "@CMake_VERSION@\0" + +VS_VERSION_INFO VERSIONINFO +FILEVERSION VER_FILEVERSION +PRODUCTVERSION VER_PRODUCTVERSION +BEGIN + BLOCK "StringFileInfo" + BEGIN + BLOCK "040904E4" + BEGIN + VALUE "FileVersion", VER_FILEVERSION_STR + VALUE "ProductVersion", VER_PRODUCTVERSION_STR + END + END + + BLOCK "VarFileInfo" + BEGIN + /* The following line should only be modified for localized versions. */ + /* It consists of any number of WORD,WORD pairs, with each pair */ + /* describing a language,codepage combination supported by the file. */ + /* */ + /* For example, a file might have values "0x409,1252" indicating that it */ + /* supports English language (0x409) in the Windows ANSI codepage (1252). */ + + VALUE "Translation", 0x409, 1252 + END +END |