Skip to content

Commit

Permalink
Also add sentry to CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
nallath committed Nov 20, 2023
1 parent b932d37 commit 7d6dc2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ find_package(fmt REQUIRED)
find_package(range-v3 REQUIRED)
find_package(scripta REQUIRED)
find_package(neargye-semver REQUIRED)
find_package(sentry REQUIRED)

if (ENABLE_TESTING)
find_package(GTest REQUIRED)
Expand All @@ -221,6 +222,7 @@ target_link_libraries(_CuraEngine
asio-grpc::asio-grpc
grpc::grpc
protobuf::libprotobuf
sentry::sentry
$<$<BOOL:${ENABLE_TESTING}>:GTest::gtest>)

if (NOT WIN32)
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main(int argc, char** argv)
sentry_options_set_release(options, "[email protected]");
sentry_options_set_debug(options, 1);
sentry_init(options);

cura::Application::getInstance().run(argc, argv);

sentry_close();
Expand Down

0 comments on commit 7d6dc2c

Please sign in to comment.