mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Use IMPORTED_TARGET for GnomeKeyring.
Summary: Otherwise we would need to append also GNOME_KEYRING_LIBRARY_DIRS to link_directories. ``` /usr/bin/ld: cannot find -lgnome-keyring c++: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. ``` Reviewers: #falkon, #automotive, kkofler, drosca Subscribers: falkon Tags: #falkon Differential Revision: https://phabricator.kde.org/D12980
This commit is contained in:
parent
1d03b5d44b
commit
37a79e3ad4
@ -100,7 +100,7 @@ find_package(PkgConfig)
|
||||
if (PKG_CONFIG_FOUND)
|
||||
option(BUILD_KEYRING "Gnome keyring password plugin" ON)
|
||||
if (BUILD_KEYRING)
|
||||
pkg_check_modules(GNOME_KEYRING gnome-keyring-1)
|
||||
pkg_check_modules(GNOME_KEYRING IMPORTED_TARGET gnome-keyring-1 )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
@ -14,5 +14,5 @@ qt5_add_resources(RSCS ${GnomeKeyringPasswords_RSCS})
|
||||
|
||||
add_library(GnomeKeyringPasswords MODULE ${GnomeKeyringPasswords_SRCS} ${RSCS})
|
||||
install(TARGETS GnomeKeyringPasswords DESTINATION ${FALKON_INSTALL_PLUGINDIR})
|
||||
target_link_libraries(GnomeKeyringPasswords ${GNOME_KEYRING_LIBRARIES} FalkonPrivate)
|
||||
target_link_libraries(GnomeKeyringPasswords PkgConfig::GNOME_KEYRING FalkonPrivate)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user