Skip to content

Commit

Permalink
Use system libcrashreporter
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOneRing committed Feb 21, 2023
1 parent 2ec02f2 commit 1c3d624
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "src/3rdparty/libcrashreporter-qt"]
path = src/3rdparty/libcrashreporter-qt
url = https://github.com/dschmidt/libcrashreporter-qt.git
1 change: 0 additions & 1 deletion src/3rdparty/libcrashreporter-qt
Submodule libcrashreporter-qt deleted from 67b6d3
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ find_package(Qt5 5.15 COMPONENTS Core Concurrent Network Widgets Xml REQUIRED)
get_target_property (QT_QMAKE_EXECUTABLE Qt5::qmake IMPORTED_LOCATION)
message(STATUS "Using Qt ${Qt5Core_VERSION} (${QT_QMAKE_EXECUTABLE})")

if(WITH_CRASHREPORTER)
find_package(CrashReporterQt REQUIRED)
endif()

find_package(Qt5Keychain REQUIRED)

Expand Down Expand Up @@ -45,7 +48,6 @@ if (NOT BUILD_LIBRARIES_ONLY)
add_subdirectory(cmd)

if (WITH_CRASHREPORTER)
add_subdirectory(3rdparty/libcrashreporter-qt EXCLUDE_FROM_ALL)
add_subdirectory(crashreporter)
endif()
endif(NOT BUILD_LIBRARIES_ONLY)
Expand Down
6 changes: 4 additions & 2 deletions src/crashreporter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ if(NOT BUILD_LIBRARIES_ONLY)

target_include_directories(${CRASHREPORTER_EXECUTABLE} PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries(${CRASHREPORTER_EXECUTABLE}
crashreporter-gui
Qt5::Core Qt5::Widgets
PRIVATE
CrashReporterQt::Gui
Qt5::Core
Qt5::Widgets
)

if(APPLE)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ endif()


if(WITH_CRASHREPORTER)
target_link_libraries(owncloudCore PUBLIC crashreporter-handler)
target_link_libraries(owncloudCore PRIVATE CrashReporterQt::Handler)

if(UNIX AND NOT MAC)
find_package(Threads REQUIRED)
Expand Down

0 comments on commit 1c3d624

Please sign in to comment.