From 5658bb99818bbb4b392d4fb5dd125c81a464a503 Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 4 Feb 2021 16:51:57 +0100 Subject: [PATCH] Fix macos compilation --- CMakeLists.txt | 3 ++- ScreenPlay/src/util.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 481b48e7..f4b7b03b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,8 @@ elseif(APPLE) set(VCPKG_ARCH "x64-osx") endif() -# assume built-in pthreads on MacOS https://stackoverflow.com/questions/54587052/cmake-on-mac-could-not-find-threads-missing-threads-found +# Assume built-in pthreads on MacOS +# https://stackoverflow.com/questions/54587052/cmake-on-mac-could-not-find-threads-missing-threads-found if(APPLE) set(CMAKE_THREAD_LIBS_INIT "-lpthread") set(CMAKE_HAVE_THREADS_LIBRARY 1) diff --git a/ScreenPlay/src/util.cpp b/ScreenPlay/src/util.cpp index 1bdf8170..959676d0 100644 --- a/ScreenPlay/src/util.cpp +++ b/ScreenPlay/src/util.cpp @@ -236,6 +236,7 @@ void Util::logToGui(QtMsgType type, const QMessageLogContext& context, const QSt if (utilPointer != nullptr) utilPointer->appendDebugMessages(log); +#ifdef Q_OS_WIN sentry_value_t crumb = sentry_value_new_breadcrumb("default", qUtf8Printable(msg)); @@ -253,6 +254,7 @@ void Util::logToGui(QtMsgType type, const QMessageLogContext& context, const QSt sentry_value_set_by_key(crumb, "data", location); sentry_add_breadcrumb(crumb); +#endif } /*!