Build and link qtkeychain statically

This commit is contained in:
Rasmus Karlsson 2021-02-21 17:04:31 +01:00
parent cf5ec33c70
commit 777d74fdfa

View file

@ -127,6 +127,7 @@ else (USE_PACKAGE_MANAGER)
message(FATAL_ERROR "Submodules probably not loaded, unable to find lib/qtkeychain/CMakeLists.txt") message(FATAL_ERROR "Submodules probably not loaded, unable to find lib/qtkeychain/CMakeLists.txt")
endif() endif()
option(QTKEYCHAIN_STATIC "" ON)
add_subdirectory("${QT5KEYCHAIN_ROOT_LIB_FOLDER}" EXCLUDE_FROM_ALL) add_subdirectory("${QT5KEYCHAIN_ROOT_LIB_FOLDER}" EXCLUDE_FROM_ALL)
if (NOT TARGET qt5keychain) if (NOT TARGET qt5keychain)
message(FATAL_ERROR "qt5keychain target was not created :@") message(FATAL_ERROR "qt5keychain target was not created :@")