Skip to content

Commit 2705633

Browse files
Add info about CMake build options to DLL's metadata
1 parent bcaba47 commit 2705633

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/libumf.rc.in

Lines changed: 3 additions & 1 deletion
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 "FileDescription" 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
@@ -49,7 +51,7 @@ BEGIN
4951
BLOCK "040904b0" // U.S. English, Unicode (0x04b0 == 1200)
5052
BEGIN
5153
VALUE "CompanyName", "Intel Corporation\0"
52-
VALUE "FileDescription", "Unified Memory Framework (UMF) library\0"
54+
VALUE "FileDescription", "Unified Memory Framework (UMF) library (build options: " _UMF_CMAKE_VARS ")\0"
5355
VALUE "FileVersion", _UMF_VERSION "\0"
5456
VALUE "LegalCopyright", "Copyright 2024-2025, Intel Corporation. All rights reserved.\0"
5557
VALUE "LegalTrademarks", "\0"

src/proxy_lib/proxy_lib.rc.in

Lines changed: 3 additions & 1 deletion
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 "FileDescription" 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
@@ -49,7 +51,7 @@ BEGIN
4951
BLOCK "040904b0" // U.S. English, Unicode (0x04b0 == 1200)
5052
BEGIN
5153
VALUE "CompanyName", "Intel Corporation\0"
52-
VALUE "FileDescription", "Unified Memory Framework (UMF) proxy library\0"
54+
VALUE "FileDescription", "Unified Memory Framework (UMF) proxy library (build options: " _UMF_CMAKE_VARS ")\0"
5355
VALUE "FileVersion", _UMF_VERSION "\0"
5456
VALUE "LegalCopyright", "Copyright 2024-2025, Intel Corporation. All rights reserved.\0"
5557
VALUE "LegalTrademarks", "\0"

0 commit comments

Comments
 (0)