1
0
Fork 0

Always assume QIcon::name exists.

This commit is contained in:
John Preston 2020-02-18 12:27:33 +04:00
parent ba9eb09bc0
commit 395c12deb1

View file

@ -26,19 +26,8 @@ else()
set_target_properties(external_dbusmenu_qt PROPERTIES AUTOMOC ON) set_target_properties(external_dbusmenu_qt PROPERTIES AUTOMOC ON)
include(CheckCXXSourceCompiles) # QIcon::name was introduced in Qt 4.7.
check_cxx_source_compiles(" set(HAVE_QICON_NAME ON)
#include <QtGui/QIcon>
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()
configure_file(${dbusmenu_qt_loc}/dbusmenu_config.h.in "${CMAKE_CURRENT_BINARY_DIR}/dbusmenu_config.h" @ONLY) 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") configure_file(${dbusmenu_qt_loc}/dbusmenu_version.h.in "${CMAKE_CURRENT_BINARY_DIR}/dbusmenu_version.h")