From 24578e8213b619b88bda4e80beba2c4ddfdb43b6 Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Tue, 10 Jan 2023 15:00:39 +0100 Subject: [PATCH] Disable PkgConfig for Android We decided that it's better to disable PkgConfig for Android, as it is unlikely that someone uses them. Task-number: QTBUG-110007 Change-Id: I6ae1059ddd05feeec047fbb906c7dba1586e816b Reviewed-by: Alexey Edelev (cherry picked from commit e6693163e5e40668bc4cc5155003c173eea83273) Reviewed-by: Qt Cherry-pick Bot --- cmake/QtPkgConfigHelpers.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/QtPkgConfigHelpers.cmake b/cmake/QtPkgConfigHelpers.cmake index 21a09365f27..03d0c6e7741 100644 --- a/cmake/QtPkgConfigHelpers.cmake +++ b/cmake/QtPkgConfigHelpers.cmake @@ -19,7 +19,8 @@ endmacro() # Create a Qt6*.pc file intended for pkg-config consumption. function(qt_internal_generate_pkg_config_file module) # TODO: PkgConfig is supported under MSVC with pkgconf (github.com/pkgconf/pkgconf) - if((NOT UNIX OR QT_FEATURE_framework) AND NOT MINGW OR CMAKE_VERSION VERSION_LESS "3.20") + if((NOT UNIX OR QT_FEATURE_framework) + AND NOT MINGW OR CMAKE_VERSION VERSION_LESS "3.20" OR ANDROID) return() endif() if(NOT BUILD_SHARED_LIBS)