From c01d9e9ec5c4b872130de6d6810726b98ef7776c Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Thu, 8 Sep 2016 02:19:12 +0200 Subject: [PATCH] Only package the Qt 5 platform DLLs on Qt 5 --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e028844c8..439644bd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -441,10 +441,11 @@ if(WIN32) INSTALL(PROGRAMS "${OpenMW_BINARY_DIR}/Release/Plugin_MyGUI_OpenMW_Resources.dll" DESTINATION ".") ENDIF(BUILD_MYGUI_PLUGIN) - INSTALL(DIRECTORY - "${OpenMW_BINARY_DIR}/Release/platforms" - "${OpenMW_BINARY_DIR}/resources" - DESTINATION ".") + IF(DESIRED_QT_VERSION MATCHES 5) + INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/Release/platforms" DESTINATION ".") + ENDIF() + + INSTALL(DIRECTORY "${OpenMW_BINARY_DIR}/resources" DESTINATION ".") FILE(GLOB plugin_dir "${OpenMW_BINARY_DIR}/Release/osgPlugins-*") INSTALL(DIRECTORY ${plugin_dir} DESTINATION ".")