From f7d72b4176aed904a076fc6c72cf1eeb1b5913fe Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 8 Oct 2022 11:12:45 +0200 Subject: [PATCH] Fixed an issue where rlottie was built as a shared library on Unix and macOS. --- external/CMakeLists.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index cbe8610c7..70a46be03 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -32,11 +32,12 @@ if(WIN32) # Strip the DLL files when building with MinGW. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s") endif() - if (WIN32) - set(BUILD_SHARED_LIBS ON) - else() - set(BUILD_SHARED_LIBS OFF) - endif() +endif() + +if (WIN32) + set(BUILD_SHARED_LIBS ON) +else() + set(BUILD_SHARED_LIBS OFF) endif() # Disable threading support for rlottie as this functionality actually leads to far worse