From 395c12deb157130c923eb5d2f0a6ac28e8edae8a Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 18 Feb 2020 12:27:33 +0400 Subject: [PATCH] Always assume QIcon::name exists. --- external/dbusmenu_qt/CMakeLists.txt | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/external/dbusmenu_qt/CMakeLists.txt b/external/dbusmenu_qt/CMakeLists.txt index ee63a53..4a977c1 100644 --- a/external/dbusmenu_qt/CMakeLists.txt +++ b/external/dbusmenu_qt/CMakeLists.txt @@ -26,19 +26,8 @@ else() set_target_properties(external_dbusmenu_qt PROPERTIES AUTOMOC ON) - include(CheckCXXSourceCompiles) - check_cxx_source_compiles(" - #include - int main() { - QIcon icon; - icon.name(); - return 0; - } - " HAVE_QICON_NAME) - - if (NOT HAVE_QICON_NAME) - message(STATUS "QIcon::name() does not exist, DBusMenuExporter will not export icon names by itself") - endif() + # QIcon::name was introduced in Qt 4.7. + set(HAVE_QICON_NAME ON) configure_file(${dbusmenu_qt_loc}/dbusmenu_config.h.in "${CMAKE_CURRENT_BINARY_DIR}/dbusmenu_config.h" @ONLY) configure_file(${dbusmenu_qt_loc}/dbusmenu_version.h.in "${CMAKE_CURRENT_BINARY_DIR}/dbusmenu_version.h")