Skip to content

Commit 3248171

Browse files
Add info about CMake build options to DLL's metadata
1 parent 727a796 commit 3248171

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/libumf.rc.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#define UMF_VERNUMBERS @PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,@UMF_VERSION_REVISION@
1212
#define _UMF_VERSION "@UMF_VERSION@"
13+
// Store our CMake vars in the "Comments" block, as the custom fields require special parsing.
14+
#define _UMF_CMAKE_VARS "@UMF_ALL_CMAKE_VARIABLES@"
1315

1416
#ifdef _DEBUG
1517
#define VERSION_DEBUG VS_FF_DEBUG
@@ -58,6 +60,7 @@ BEGIN
5860
VALUE "ProductVersion", _UMF_VERSION "\0"
5961
VALUE "PrivateBuild", "\0"
6062
VALUE "SpecialBuild", "\0"
63+
VALUE "Comments", _UMF_CMAKE_VARS "\0"
6164
END
6265
END
6366
BLOCK "VarFileInfo"

src/proxy_lib/proxy_lib.rc.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#define UMF_VERNUMBERS @PROJECT_VERSION_MAJOR@,@PROJECT_VERSION_MINOR@,@PROJECT_VERSION_PATCH@,@UMF_VERSION_REVISION@
1212
#define _UMF_VERSION "@UMF_VERSION@"
13+
// Store our CMake vars in the "Comments" block, as the custom fields require special parsing.
14+
#define _UMF_CMAKE_VARS "@UMF_ALL_CMAKE_VARIABLES@"
1315

1416
#ifdef _DEBUG
1517
#define VERSION_DEBUG VS_FF_DEBUG
@@ -58,6 +60,7 @@ BEGIN
5860
VALUE "ProductVersion", _UMF_VERSION "\0"
5961
VALUE "PrivateBuild", "\0"
6062
VALUE "SpecialBuild", "\0"
63+
VALUE "Comments", _UMF_CMAKE_VARS "\0"
6164
END
6265
END
6366
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)