From 3447e2fbdc918c674796c8075d86c9890ae6f252 Mon Sep 17 00:00:00 2001 From: Alexandra Trifan Date: Thu, 28 May 2020 15:03:03 +0300 Subject: [PATCH] CMakeLists.txt: Add File Version to the file properties. Signed-off-by: Alexandra Trifan --- CMakeLists.txt | 4 ++++ properties.rc.cmakein | 1 + 2 files changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 297128633..1e7581fed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -357,6 +357,10 @@ if (IIOD_CLIENT) list(APPEND LIBIIO_CFILES iiod-client.c) endif() +if (WIN32) + string(REPLACE "." "," LIBIIO_FILEVERSION ${VERSION}) +endif() + configure_file(libiio.iss.cmakein ${CMAKE_CURRENT_BINARY_DIR}/libiio.iss @ONLY) set(LIBIIO_PC ${CMAKE_CURRENT_BINARY_DIR}/libiio.pc) diff --git a/properties.rc.cmakein b/properties.rc.cmakein index b9d0db595..a2e0e915d 100644 --- a/properties.rc.cmakein +++ b/properties.rc.cmakein @@ -1,6 +1,7 @@ #include LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT VS_VERSION_INFO VERSIONINFO +FILEVERSION @LIBIIO_FILEVERSION@ BEGIN BLOCK "StringFileInfo" BEGIN