From ae755c0167652ad95900d880c3e85a20e7bdc8b3 Mon Sep 17 00:00:00 2001 From: Laurent Noel Date: Wed, 25 Sep 2019 12:06:20 -0600 Subject: Windows: Fill ProductVersion of blender executable On windows, the ProductVersion field of the blender executable was empty, see [1] for more information. This field might be required by windows tools such as SCCM agent to track usage statistics. It seems that it was due to the BLEN_VER_RC_STR macro used in winblender.rc not being a string. [1] https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource Differential Revision: https://developer.blender.org/D5896 --- source/creator/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index e1326d62ae0..85b6f24a269 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -133,7 +133,7 @@ if(WIN32 AND NOT UNIX) string(SUBSTRING ${BLENDER_VERSION} 2 1 bver2) string(SUBSTRING ${BLENDER_VERSION} 3 1 bver3) add_definitions( - -DBLEN_VER_RC_STR=${BLENDER_VERSION} + -DBLEN_VER_RC_STR="${BLENDER_VERSION}" -DBLEN_VER_RC_1=${bver1} -DBLEN_VER_RC_2=${bver2} -DBLEN_VER_RC_3=${bver3} -- cgit v1.2.3