From bf897311d98a457b4859eb5e15fbd485e39ecf96 Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Tue, 18 Oct 2022 20:37:08 +0300 Subject: [PATCH] [macOS] don't fail if macdeployqt is missing - it's needed only at install time (when creating dmg) - ConanCenter binaries don't have it --- osx/CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/osx/CMakeLists.txt b/osx/CMakeLists.txt index a4db588ba..cc5d83ea1 100644 --- a/osx/CMakeLists.txt +++ b/osx/CMakeLists.txt @@ -9,9 +9,8 @@ if(APPLE_MACOS) if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL CMAKE_SYSTEM_PROCESSOR) # deploy Qt dylibs with macdeployqt find_program(TOOL_MACDEPLOYQT NAMES macdeployqt PATHS ${qt_base_dir}/bin) - if(NOT TOOL_MACDEPLOYQT) - message(FATAL_ERROR "Could not find macdeployqt") - endif() + endif() + if(TOOL_MACDEPLOYQT) install(CODE " execute_process(COMMAND \"${TOOL_MACDEPLOYQT}\" \"${bundleDir}\" -verbose=2