You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
find_package(sentry CONFIG) is broken if crashpad is used as backend since a library and an executable with the same name get exported in lib/cmake/sentry/sentry_crashpad-targets.cmake:
Which leads to the following error when consuming sentry-config.cmake:
-- The CXX compiler identification is GNU 8.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /home/eric/setry-native/install/lib/cmake/sentry/sentry_crashpad-targets.cmake:120 (add_executable):
add_executable cannot create imported target "sentry_crashpad::handler"
because another target with the same name already exists.
Call Stack (most recent call first):
/home/eric/setry-native/install/lib/cmake/sentry/sentry-config.cmake:34 (include)
CMakeLists.txt:11 (find_package)
During build
During run-time
When capturing a hard crash
Environment
OS: Ubuntu 18
Compiler: gcc 8
The text was updated successfully, but these errors were encountered:
Description
find_package(sentry CONFIG)
is broken ifcrashpad
is used as backend since a library and an executable with the same name get exported inlib/cmake/sentry/sentry_crashpad-targets.cmake
:Which leads to the following error when consuming
sentry-config.cmake
:Environment
The text was updated successfully, but these errors were encountered: