mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
macOS: warn about harmless but annoying errors on M1 Macs
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ddeafcfad5
commit
240b2dc4df
1 changed files with 4 additions and 0 deletions
|
@ -546,6 +546,10 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
set(QT_INSTALL_PREFIX ${QT6_INSTALL_PREFIX})
|
set(QT_INSTALL_PREFIX ${QT6_INSTALL_PREFIX})
|
||||||
endif()
|
endif()
|
||||||
# this will fail is macdeployqt isn't in the PATH - that seemed to happen in the past, but not recently
|
# 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})")
|
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
|
# 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)")
|
install(CODE "execute_process(COMMAND rm -rf ${CMAKE_BINARY_DIR}/${APP_BUNDLE_DIR}/Contents/PlugIns/sqldrivers)")
|
||||||
|
|
Loading…
Reference in a new issue