if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") find_package(PkgConfig REQUIRED) # if you do not have breakpad installed, use the build.sh script and uncomment this # if (NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/install") # message(FATAL_ERROR "Could not find breakpad build, see 3rd-party/breakpad/build.sh") # endif () # set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${CMAKE_CURRENT_LIST_DIR}/install/lib/pkgconfig" ) pkg_check_modules(BREAKPAD REQUIRED IMPORTED_TARGET breakpad-client) endif() # linux system