From e8665bfb72874e37357521186325160d658db4eb Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 12 Aug 2021 12:18:51 +0200 Subject: [PATCH] CMakeLists: build runtime static on msvc --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d6a098..d32fddb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,9 @@ project(BeamMP-Server set(SENTRY_TRANSPORT "curl") include_directories("include/sentry-native/include") set(SENTRY_BUILD_SHARED_LIBS OFF) +if (MSVC) + set(SENTRY_BUILD_RUNTIMESTATIC ON) +endif() add_subdirectory("include/sentry-native") message(STATUS "Setting compiler flags")