deps: use upstream qtkeychain (#5697)
This commit is contained in:
@@ -160,10 +160,19 @@ if (BUILD_WITH_QTKEYCHAIN)
|
||||
message(FATAL_ERROR "Submodules probably not loaded, unable to find lib/qtkeychain/CMakeLists.txt")
|
||||
endif()
|
||||
|
||||
set(_prev_testing ${BUILD_TESTING})
|
||||
set(BUILD_TESTING Off)
|
||||
add_subdirectory("${QTKEYCHAIN_ROOT_LIB_FOLDER}" EXCLUDE_FROM_ALL)
|
||||
set(BUILD_TESTING ${_prev_testing})
|
||||
|
||||
if (NOT TARGET qt${MAJOR_QT_VERSION}keychain)
|
||||
message(FATAL_ERROR "qt${MAJOR_QT_VERSION}keychain target was not created :@")
|
||||
endif()
|
||||
if (MSVC AND "${MAJOR_QT_VERSION}" STREQUAL "5")
|
||||
target_compile_definitions(qt5keychain PRIVATE UNICODE)
|
||||
target_compile_options(qt5keychain PRIVATE /utf-8)
|
||||
set_target_properties(qt5keychain PROPERTIES CXX_STANDARD 17)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user