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