macOS: Exclude CMAKE_PREFIX_PATH when searching for dsymutil

dsymutil is shipped with libclang, but we usually don't want to use that.
Fixes universal builds while we don't have a universal build of libclang yet.

Change-Id: Ie5c435e1c391f7bb0a8f1faadbb7b3375d101990
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Eike Ziller
2021-08-19 14:46:23 +02:00
parent 3677f0be74
commit 3611fb1065
+3 -1
View File
@@ -26,7 +26,9 @@ function(qtc_enable_separate_debug_info target installDestination)
unset(commands)
if(APPLE)
find_program(DSYMUTIL_PROGRAM dsymutil)
find_program(DSYMUTIL_PROGRAM dsymutil
NO_PACKAGE_ROOT_PATH
NO_CMAKE_PATH)
set(copy_bin ${DSYMUTIL_PROGRAM})
set(strip_bin ${CMAKE_STRIP})
set(debug_info_suffix dSYM)