From 9e6cf91797cb5278350d5ca6b2b3a445202ce0c9 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 11 May 2023 18:44:14 +0200 Subject: [PATCH] Workaround for some LunaSVG CMake strangeness --- external/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 8163d8a35..290035934 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -42,6 +42,14 @@ endif() add_subdirectory(lunasvg EXCLUDE_FROM_ALL) +# It's quite strange that this is needed but LunaSVG saves these artifacts to separate +# subdirectories by default. +set_target_properties(lunasvg + PROPERTIES + ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} + LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR} + RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}) + # Disable threading support for rlottie as this functionality actually leads to far worse # performance. As well there is a bug on Windows that makes rlottie hang forever on application # shutdown if compiled using MinGW with threading support enabled.