Commit 1a7e19eb7a86582938d6609645ec99e2c4ab22ea
1 parent
24433cd5
this plugin may not exist
Showing
1 changed file
with
6 additions
and
3 deletions
share/openbr/cmake/InstallDependencies.cmake
| @@ -125,9 +125,12 @@ function(install_qt_platforms) | @@ -125,9 +125,12 @@ function(install_qt_platforms) | ||
| 125 | 125 | ||
| 126 | install(FILES ${_qt5Core_install_prefix}${QT_MULTIARCH}/plugins/platforms/libqlinuxfb.so | 126 | install(FILES ${_qt5Core_install_prefix}${QT_MULTIARCH}/plugins/platforms/libqlinuxfb.so |
| 127 | DESTINATION bin/platforms) | 127 | DESTINATION bin/platforms) |
| 128 | - install_qt_library(XcbQpa) | ||
| 129 | - install(FILES ${_qt5Core_install_prefix}${QT_MULTIARCH}/plugins/platforms/libqxcb.so | ||
| 130 | - DESTINATION bin/platforms) | 128 | + |
| 129 | + if(EXISTS ${_qt5Core_install_prefix}${QT_MULTIARCH}/plugins/platforms/libqxcb.so) | ||
| 130 | + install_qt_library(XcbQpa) | ||
| 131 | + install(FILES ${_qt5Core_install_prefix}${QT_MULTIARCH}/plugins/platforms/libqxcb.so | ||
| 132 | + DESTINATION bin/platforms) | ||
| 133 | + endif() | ||
| 131 | endif() | 134 | endif() |
| 132 | endif() | 135 | endif() |
| 133 | endfunction() | 136 | endfunction() |