Fixed an issue where rlottie was built as a shared library on Unix and macOS.

This commit is contained in:
Leon Styhre 2022-10-08 11:12:45 +02:00
parent c7a035127c
commit f7d72b4176

View file

@ -32,11 +32,12 @@ if(WIN32)
# Strip the DLL files when building with MinGW. # Strip the DLL files when building with MinGW.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s")
endif() endif()
if (WIN32) endif()
set(BUILD_SHARED_LIBS ON)
else() if (WIN32)
set(BUILD_SHARED_LIBS OFF) set(BUILD_SHARED_LIBS ON)
endif() else()
set(BUILD_SHARED_LIBS OFF)
endif() endif()
# Disable threading support for rlottie as this functionality actually leads to far worse # Disable threading support for rlottie as this functionality actually leads to far worse