From db69a3dacd82ff364cbf85d3218006392d09965f Mon Sep 17 00:00:00 2001 From: Jan Dalheimer Date: Sat, 6 Jun 2015 15:10:19 +0200 Subject: NOISSUE Don't attempt to package the accessible plugins on Qt >= 5.4 --- application/CMakeLists.txt | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'application/CMakeLists.txt') diff --git a/application/CMakeLists.txt b/application/CMakeLists.txt index bf1bab31..d7cb5777 100644 --- a/application/CMakeLists.txt +++ b/application/CMakeLists.txt @@ -433,15 +433,18 @@ else() REGEX "_debug\\." EXCLUDE ) if(APPLE) - # Accessible plugin to make buttons look decent on osx - install( - DIRECTORY "${QT_PLUGINS_DIR}/accessible" - DESTINATION ${PLUGIN_DEST_DIR} - COMPONENT Runtime - REGEX "quick" EXCLUDE - REGEX "d\\." EXCLUDE - REGEX "_debug\\." EXCLUDE - ) + # Accessible plugin to make buttons look decent on osx + if("${Qt5Core_VERSION_STRING}" VERSION_LESS "5.4.0") + message(STATUS "Packaging the Qt accessible plugins because we're on Qt ${Qt5Core_VERSION_STRING}") + install( + DIRECTORY "${QT_PLUGINS_DIR}/accessible" + DESTINATION ${PLUGIN_DEST_DIR} + COMPONENT Runtime + REGEX "quick" EXCLUDE + REGEX "d\\." EXCLUDE + REGEX "_debug\\." EXCLUDE + ) + endif() endif() endif() -- cgit v1.2.3