diff options
author | Julien Schueller <schueller@phimeca.com> | 2020-09-12 09:42:35 +0000 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2021-11-18 13:20:08 +0000 |
commit | 1b8d560649f898bdd38bdbbe9307ccc7fa86aaf6 (patch) | |
tree | 2c991eab657151e730f87ae2b7afd77432160129 /cmake | |
parent | 21c11546155aa303528e94d51ea970706bc42083 (diff) | |
download | dbus-1b8d560649f898bdd38bdbbe9307ccc7fa86aaf6.tar.gz |
CMake: Set IMPORTED_IMPLIB property
Setting this property allows to fix linking to the imported target with MinGW.
This only happens when dbus is built using autotools, when cmake is used the DBus1Config.variant.in
is configured and the automatically exported target by cmake is fine.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/DBus1Config.pkgconfig.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/DBus1Config.pkgconfig.in b/cmake/DBus1Config.pkgconfig.in index 8c0a25e4..93c593e1 100644 --- a/cmake/DBus1Config.pkgconfig.in +++ b/cmake/DBus1Config.pkgconfig.in @@ -71,5 +71,6 @@ set(DBus1_INCLUDE_DIRS "${DBus1_INCLUDE_DIR}" "${DBus1_ARCH_INCLUDE_DIR}") # setup imported target add_library(dbus-1 SHARED IMPORTED) set_property(TARGET dbus-1 APPEND PROPERTY IMPORTED_LOCATION ${DBus1_LIBRARY}) +set_property(TARGET dbus-1 APPEND PROPERTY IMPORTED_IMPLIB ${DBus1_LIBRARY}) set_property(TARGET dbus-1 APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${DBus1_INCLUDE_DIRS}) set_property(TARGET dbus-1 APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS ${DBus1_DEFINITIONS}) |