1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Fix macos compilation

This commit is contained in:
Elias Steurer 2021-02-04 16:51:57 +01:00
parent 799a795e92
commit 5658bb9981
2 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,8 @@ elseif(APPLE)
set(VCPKG_ARCH "x64-osx") set(VCPKG_ARCH "x64-osx")
endif() 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) if(APPLE)
set(CMAKE_THREAD_LIBS_INIT "-lpthread") set(CMAKE_THREAD_LIBS_INIT "-lpthread")
set(CMAKE_HAVE_THREADS_LIBRARY 1) set(CMAKE_HAVE_THREADS_LIBRARY 1)

View File

@ -236,6 +236,7 @@ void Util::logToGui(QtMsgType type, const QMessageLogContext& context, const QSt
if (utilPointer != nullptr) if (utilPointer != nullptr)
utilPointer->appendDebugMessages(log); utilPointer->appendDebugMessages(log);
#ifdef Q_OS_WIN
sentry_value_t crumb sentry_value_t crumb
= sentry_value_new_breadcrumb("default", qUtf8Printable(msg)); = 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_value_set_by_key(crumb, "data", location);
sentry_add_breadcrumb(crumb); sentry_add_breadcrumb(crumb);
#endif
} }
/*! /*!