aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/CMakeLists.txt4
-rw-r--r--host/lib/uhd.rc.in4
2 files changed, 6 insertions, 2 deletions
diff --git a/host/lib/CMakeLists.txt b/host/lib/CMakeLists.txt
index 5755a6c4c..321278db5 100644
--- a/host/lib/CMakeLists.txt
+++ b/host/lib/CMakeLists.txt
@@ -99,6 +99,10 @@ LIBUHD_APPEND_SOURCES(
# Add DLL resource file to Windows build
########################################################################
IF(MSVC)
+ SET(RC_TRIMMED_VERSION_PATCH TRIMMED_VERSION_PATCH)
+ IF(UHD_VERSION_DEVEL)
+ SET(RC_TRIMMED_VERSION_PATCH "999")
+ ENDIF(UHD_VERSION_DEVEL)
CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/uhd.rc.in
${CMAKE_CURRENT_BINARY_DIR}/uhd.rc
diff --git a/host/lib/uhd.rc.in b/host/lib/uhd.rc.in
index feb006bd3..a0eb27b8c 100644
--- a/host/lib/uhd.rc.in
+++ b/host/lib/uhd.rc.in
@@ -1,8 +1,8 @@
#include <afxres.h>
VS_VERSION_INFO VERSIONINFO
- FILEVERSION @TRIMMED_VERSION_MAJOR@,@TRIMMED_VERSION_MINOR@,@TRIMMED_VERSION_PATCH@,@UHD_GIT_COUNT@
- PRODUCTVERSION @TRIMMED_VERSION_MAJOR@,@TRIMMED_VERSION_MINOR@,@TRIMMED_VERSION_PATCH@,@UHD_GIT_COUNT@
+ FILEVERSION @TRIMMED_VERSION_MAJOR@,@TRIMMED_VERSION_MINOR@,@RC_TRIMMED_VERSION_PATCH@,@UHD_GIT_COUNT@
+ PRODUCTVERSION @TRIMMED_VERSION_MAJOR@,@TRIMMED_VERSION_MINOR@,@RC_TRIMMED_VERSION_PATCH@,@UHD_GIT_COUNT@
FILEFLAGSMASK 0x3fL
#ifndef NDEBUG
FILEFLAGS 0x0L