From 240b2dc4df1cea2aa15cbb4eff77f45f55316a39 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 10 Feb 2022 14:47:08 -0800 Subject: [PATCH] macOS: warn about harmless but annoying errors on M1 Macs Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1ec476e8..1514294dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -546,6 +546,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") set(QT_INSTALL_PREFIX ${QT6_INSTALL_PREFIX}) endif() # this will fail is macdeployqt isn't in the PATH - that seemed to happen in the past, but not recently + # also, on M1 macOS systems macdeployqt throws a ton of (apparently harmless) errors. Warn the unsuspecting developer + if(CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + install(CODE "execute_process(COMMAND echo the following macdeployqt command will spew out a ton of harmless otool output parsing errors)") + endif() install(CODE "execute_process(COMMAND macdeployqt ${APP_BUNDLE_DIR} -no-strip ${MACDEPLOY_ARGS})") # the next hack is here to delete the sqlite plugin that get's installed even though it isn't needed install(CODE "execute_process(COMMAND rm -rf ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/PlugIns/sqldrivers)")