Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
Add missing Linux dependencies
Browse files Browse the repository at this point in the history
The Linux client of breakpad requires the gflags and glog libraries and
hence those packages needs to be added to Linux builds.
  • Loading branch information
Fredrik Appelros committed Apr 25, 2019
1 parent 7ba71a1 commit ff5009b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,13 @@ target_include_directories(libbreakpad_client
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
$<INSTALL_INTERFACE:${include_install_dir}/breakpad>
)
if(NOT WIN32 AND NOT APPLE)
hunter_add_package(gflags)
hunter_add_package(glog)
find_package(gflags CONFIG REQUIRED)
find_package(glog CONFIG REQUIRED)
target_link_libraries(libbreakpad_client PUBLIC gflags glog::glog)
endif()


install(
Expand Down
7 changes: 7 additions & 0 deletions cmake/config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
check_required_components("@PROJECT_NAME@")

include(CMakeFindDependencyMacro)

if(NOT "@WIN32@" AND NOT "@APPLE@")
find_dependency(gflags)
find_dependency(glog)
endif()

0 comments on commit ff5009b

Please sign in to comment.