1
0
Files
kdesignerplugin/fix-build-with-cmake-less-than-3.0.0.diff
Hrvoje Senjan 2e2b52777f Accepting request 337272 from home:alarrosa:branches:KDE:Frameworks5
- Added fix-build-with-cmake-less-than-3.0.0.diff to not include
  Qt5UiPlugin module if we don't have cmake 3.0.0 since that module
  requires it

OBS-URL: https://build.opensuse.org/request/show/337272
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kdesignerplugin?expand=0&rev=67
2015-10-08 14:58:07 +00:00

14 lines
802 B
Diff

Index: kdesignerplugin-5.15.0/KF5DesignerPluginMacros.cmake
===================================================================
--- kdesignerplugin-5.15.0.orig/KF5DesignerPluginMacros.cmake
+++ kdesignerplugin-5.15.0/KF5DesignerPluginMacros.cmake
@@ -87,7 +87,7 @@ macro(kf5designerplugin_add_plugin targe
PURPOSE "Required to build Qt Designer plugins"
)
endif()
- if(NOT Qt5Designer_VERSION_STRING VERSION_LESS 5.5.0 AND NOT Qt5UiPlugin_FOUND)
+ if(NOT Qt5Designer_VERSION_STRING VERSION_LESS 5.5.0 AND NOT Qt5UiPlugin_FOUND AND NOT CMAKE_VERSION VERSION_LESS 3.0.0)
find_package(Qt5UiPlugin ${REQUIRED_QT_VERSION} ${_requiredarg} NO_MODULE)
set_package_properties(Qt5UiPlugin PROPERTIES
PURPOSE "Required to build Qt Designer plugins"