From 1c2606c6db2bd74e1a45b86c2c5e363d47b0b0a3 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 25 Feb 2015 13:12:37 -0800 Subject: [PATCH] fail out if windeployqt is not found --- cmake/macros/CopyDllsBesideWindowsExecutable.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/macros/CopyDllsBesideWindowsExecutable.cmake b/cmake/macros/CopyDllsBesideWindowsExecutable.cmake index a97603a6ca..24996fde03 100644 --- a/cmake/macros/CopyDllsBesideWindowsExecutable.cmake +++ b/cmake/macros/CopyDllsBesideWindowsExecutable.cmake @@ -28,6 +28,10 @@ macro(COPY_DLLS_BESIDE_WINDOWS_EXECUTABLE) ) find_program(WINDEPLOYQT_COMMAND windeployqt PATHS ${QT_DIR}/bin NO_DEFAULT_PATH) + + if (NOT WINDEPLOYQT_COMMAND) + message(FATAL_ERROR "Could not find windeployqt at ${QT_DIR}/bin. windeployqt is required.") + endif () # add a post-build command to call windeployqt to copy Qt plugins add_custom_command(