mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Fix crash on mac OS < 13.
It's caused by the new optimized Xcode 15 linker when linking static libraries. source: https://crystalidea.com/blog/qt-apps-crash-when-using-xcode-15 Signed-off-by: Camila <hello@camila.codes>
This commit is contained in:
parent
74a9717e3f
commit
3c51c9e1f8
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ if(WIN32)
|
|||
elseif(UNIX AND NOT APPLE)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,relro -Wl,-z,now")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,relro -Wl,-z,now")
|
||||
else()
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-ld_classic")
|
||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-ld_classic")
|
||||
endif()
|
||||
|
||||
set(QML_IMPORT_PATH ${CMAKE_SOURCE_DIR}/theme CACHE STRING "" FORCE)
|
||||
|
|
Loading…
Reference in a new issue