Skip to content

Commit

Permalink
Only create Qt5Keychain::Qt5Keychain/Qt6Keychain::Qt6Keychain if cmak…
Browse files Browse the repository at this point in the history
…e >= 3.18.0
  • Loading branch information
daschuer authored and frankosterfeld committed Jun 1, 2022
1 parent 9e39435 commit ef13bef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion QtKeychainConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ endif()
set(QTKEYCHAIN_LIBRARIES "@QTKEYCHAIN_TARGET_NAME@")
get_target_property(QTKEYCHAIN_INCLUDE_DIRS "@QTKEYCHAIN_TARGET_NAME@" INTERFACE_INCLUDE_DIRECTORIES)

add_library(Qt@QTKEYCHAIN_VERSION_INFIX@Keychain::Qt@QTKEYCHAIN_VERSION_INFIX@Keychain ALIAS qt@QTKEYCHAIN_VERSION_INFIX@keychain)
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.18.0)
add_library(Qt@QTKEYCHAIN_VERSION_INFIX@Keychain::Qt@QTKEYCHAIN_VERSION_INFIX@Keychain ALIAS qt@QTKEYCHAIN_VERSION_INFIX@keychain)
endif()

0 comments on commit ef13bef

Please sign in to comment.