From 8d648867e14fa635b2f0527055274e47733a225c Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 7 Jan 2022 22:51:14 +0100 Subject: [PATCH] (Windows) Disabled threading support in rlottie since it was unstable when built using MinGW. --- external/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 736eec750..11da7685a 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -11,5 +11,11 @@ if(NOT WIN32) set(BUILD_SHARED_LIBS OFF) endif() +# There is a bug that makes rlottie hang forever on application shutdown if compiled using MinGW +# with threading support enabled. Disable it for MSVC as well to keep the behavior consistent. +if(WIN32) + option(LOTTIE_THREAD OFF) +endif() + option(LOTTIE_MODULE OFF) add_subdirectory("rlottie")