Skip to content

Commit

Permalink
CMakeLists.txt: Add File Version to the file properties.
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandra Trifan <[email protected]>
  • Loading branch information
AlexandraTrifan committed May 28, 2020
1 parent 41aaf1b commit 3447e2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions properties.rc.cmakein
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <windows.h>
LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT
VS_VERSION_INFO VERSIONINFO
FILEVERSION @LIBIIO_FILEVERSION@
BEGIN
BLOCK "StringFileInfo"
BEGIN
Expand Down

0 comments on commit 3447e2f

Please sign in to comment.