Skip to content

Commit

Permalink
Debug builds: Fix macOS qt linking
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed May 14, 2024
1 parent 4fb6d9d commit a6c12ae
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/apple/CPackDMG.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ set(COMMAND_ECHO NONE)
# Detect release|debug build
if(NOT CPACK_STRIP_FILES_ORIG)
# -use-debug-libs implies -no-strip
set(USE_DEBUG_LIBS -use-debug-libs)
if(CPACK_QMAKE_EXECUTABLE MATCHES "/homebrew/|/usr/local")
message(STATUS "Homebrew does not provide debug qt libraries, replacing \"-use-debug-libs\" with \"-no-strip\" instead")
set(USE_DEBUG_LIBS -no-strip)
else()
set(USE_DEBUG_LIBS -use-debug-libs)
endif()
endif()

if(CPACK_DEBUG)
Expand Down

0 comments on commit a6c12ae

Please sign in to comment.