From 0fd31f3632c3efef9aba2cf0790ad9f22e103f35 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 4 Jul 2018 03:10:27 +0200 Subject: [PATCH] Turn off git revision for windows build --- cmake/Version.cmake | 4 ++++ dist/windows/windres.rc.in | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cmake/Version.cmake b/cmake/Version.cmake index 8487d0b6d..1301e245a 100644 --- a/cmake/Version.cmake +++ b/cmake/Version.cmake @@ -5,6 +5,10 @@ set(STRAWBERRY_VERSION_PATCH 6) set(INCLUDE_GIT_REVISION ON) +if (WIN32) + set(INCLUDE_GIT_REVISION OFF) +endif() + set(majorminorpatch "${STRAWBERRY_VERSION_MAJOR}.${STRAWBERRY_VERSION_MINOR}.${STRAWBERRY_VERSION_PATCH}") set(STRAWBERRY_VERSION_DISPLAY "${majorminorpatch}") diff --git a/dist/windows/windres.rc.in b/dist/windows/windres.rc.in index 2f448aab6..5d833fcb4 100644 --- a/dist/windows/windres.rc.in +++ b/dist/windows/windres.rc.in @@ -1,7 +1,7 @@ strawberry ICON "${CMAKE_CURRENT_SOURCE_DIR}/../dist/windows/strawberry.ico" 1 VERSIONINFO -FILEVERSION ${STRAWBERRY_VERSION_MAJOR},${STRAWBERRY_VERSION_MINOR},${STRAWBERRY_VERSION_PATCH},${GIT_COMMITCOUNT} -PRODUCTVERSION ${STRAWBERRY_VERSION_MAJOR},${STRAWBERRY_VERSION_MINOR},${STRAWBERRY_VERSION_PATCH},${GIT_COMMITCOUNT} +FILEVERSION ${STRAWBERRY_VERSION_MAJOR},${STRAWBERRY_VERSION_MINOR},${STRAWBERRY_VERSION_PATCH} +PRODUCTVERSION ${STRAWBERRY_VERSION_MAJOR},${STRAWBERRY_VERSION_MINOR},${STRAWBERRY_VERSION_PATCH} BEGIN BLOCK "StringFileInfo" BEGIN