From 1dbfa3f82fccea54c4a462216bee5d54f3372258 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 3 Oct 2022 21:40:20 +0200 Subject: [PATCH] Set proper build types for the bundled libraries. --- external/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index 44584ba39..178767589 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -6,8 +6,11 @@ # CMake configuration for bundled dependencies built in-tree. # -# Always build the external libraries with optimizations enabled and without debug info. -set (CMAKE_BUILD_TYPE "Release") +if (CMAKE_BUILD_TYPE MATCHES Profiling) + set (CMAKE_BUILD_TYPE Debug) +elseif(NOT CMAKE_BUILD_TYPE MATCHES Debug) + set (CMAKE_BUILD_TYPE Release) +endif() # Disabled 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