fix some sentry and linking related issues

This commit is contained in:
Lion Kortlepel 2022-05-26 11:51:26 +02:00
parent 019c5202ea
commit bc1628afeb
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B
3 changed files with 3 additions and 7 deletions

View File

@ -125,7 +125,6 @@ set(BeamMP_Sources
set(BeamMP_Includes
"${CMAKE_CURRENT_SOURCE_DIR}/include"
"${CMAKE_CURRENT_SOURCE_DIR}/commandline"
"${CMAKE_CURRENT_SOURCE_DIR}/include"
${LUA_INCLUDE_DIR}
${CURL_INCLUDE_DIRS}
"include/tomlplusplus"
@ -155,7 +154,6 @@ if (WIN32)
endif ()
# ------------------------ BEAMMP SERVER -----------------------------
# ------------------------ BEAMMP SERVER TESTS -----------------------
add_executable(BeamMP-Server
src/main.cpp
@ -188,7 +186,6 @@ if(BUILD_TESTS)
target_compile_definitions(BeamMP-Server-tests PRIVATE
${BeamMP_Definitions}
DOCTEST_CONFIG_DISABLE
)
target_include_directories(BeamMP-Server-tests PUBLIC

View File

@ -12,6 +12,9 @@
#include "CustomAssert.h"
#include "Http.h"
// global, yes, this is ugly, no, it cant be done another way
TSentry Sentry {};
Application::TSettings Application::Settings = {};
void Application::RegisterShutdownHandler(const TShutdownHandler& Handler) {

View File

@ -44,10 +44,6 @@ EXAMPLES:
'MyWestCoastServerConfig.toml'.
)";
// this is provided by the build system, leave empty for source builds
// global, yes, this is ugly, no, it cant be done another way
TSentry Sentry {};
struct MainArguments {
int argc {};
char** argv {};