diff --git a/native/crash_handler/CMakeLists.txt b/native/crash_handler/CMakeLists.txt index fb74c7f..71d045b 100644 --- a/native/crash_handler/CMakeLists.txt +++ b/native/crash_handler/CMakeLists.txt @@ -4,11 +4,10 @@ set(SOURCE_FILES ${SOURCE_FILES} src/crash_handler.cpp) if (MSVC) set(SOURCE_FILES ${SOURCE_FILES} src/win_crash_generator.cpp) else() - include_directories(/usr/local/include/breakpad) - resolve_library(LIBRARY_PATH_BREAKPAD OFF "${LIBRARY_PATH}/breakpad/build/src/client/linux/libbreakpad_client.a") + find_package(Breakpad REQUIRED) set(REQUIRED_LIBRARIES - ${LIBRARY_PATH_BREAKPAD} + breakpad::static libstdc++fs.a ) endif()