Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Qt6: Don't use android extras on Qt6

Halla Remptd91e55ed4a7d
diff --git a/libs/global/CMakeLists.txt b/libs/global/CMakeLists.txt
index 0d4bb3139b..34ef6a58ea 100644
--- a/libs/global/CMakeLists.txt
+++ b/libs/global/CMakeLists.txt
@@ -90,7 +90,11 @@ if (GSL_FOUND)
endif ()
if (ANDROID)
- target_link_libraries(kritaglobal PRIVATE ${unwindstack_LIBRARIES} Qt${QT_MAJOR_VERSION}::AndroidExtras log)
+ if (QT_MAJOR_VERSION STREQUAL "6")
+ target_link_libraries(kritaglobal PRIVATE ${unwindstack_LIBRARIES} log)
+ else()
+ target_link_libraries(kritaglobal PRIVATE ${unwindstack_LIBRARIES} Qt5::AndroidExtras log)
+ endif()
endif()
if(APPLE)