From b583f7826991423d40d37efffe6bbd8024419d60 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 17 Oct 2017 20:56:12 +0200 Subject: [PATCH] Add version info to dbus-1 target for non msvc builds on Windows too Signed-off-by: Ralf Habacker Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103015 --- cmake/dbus/CMakeLists.txt | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/cmake/dbus/CMakeLists.txt b/cmake/dbus/CMakeLists.txt index 4b2eac3f..8a01d918 100644 --- a/cmake/dbus/CMakeLists.txt +++ b/cmake/dbus/CMakeLists.txt @@ -240,13 +240,12 @@ set(libdbus_HEADERS ${DBUS_LIB_HEADERS} ${DBUS_SHARED_HEADERS} ) -if (MSVC) - set (BUILD_FILEVERSION ${DBUS_MAJOR_VERSION},${DBUS_MINOR_VERSION},${DBUS_MICRO_VERSION},${DBUS_PATCH_VERSION}) - set (BUILD_TIMESTAMP ${DBUS_BUILD_TIMESTAMP}) - - configure_file(${DBUS_DIR}/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo.rc) - list(APPEND libdbus_SOURCES versioninfo.rc) -endif (MSVC) + +set (BUILD_FILEVERSION ${DBUS_MAJOR_VERSION},${DBUS_MINOR_VERSION},${DBUS_MICRO_VERSION},${DBUS_PATCH_VERSION}) +set (BUILD_TIMESTAMP ${DBUS_BUILD_TIMESTAMP}) + +configure_file(${DBUS_DIR}/versioninfo.rc.in ${CMAKE_CURRENT_BINARY_DIR}/versioninfo.rc) +list(APPEND libdbus_SOURCES versioninfo.rc) if(MSVC_IDE) project_source_group(${GROUP_CODE} DBUS_LIB_SOURCES DBUS_LIB_HEADERS) -- 2.12.3