From 6ba7c0ea399a3f198dfc38f6dd13efd5d57b2b73 Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Sat, 16 Nov 2024 13:30:01 +0100 Subject: [PATCH] hello_imgui_build_lib.cmake: _him_add_freetype_plutosvg_to_imgui forced if HELLOIMGUI_FREETYPE_STATIC --- hello_imgui_cmake/hello_imgui_build_lib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hello_imgui_cmake/hello_imgui_build_lib.cmake b/hello_imgui_cmake/hello_imgui_build_lib.cmake index b906f540..0bc8278f 100644 --- a/hello_imgui_cmake/hello_imgui_build_lib.cmake +++ b/hello_imgui_cmake/hello_imgui_build_lib.cmake @@ -458,7 +458,7 @@ function(_him_add_freetype_plutosvg_to_imgui) # We have to # - enable plutosvg in imgui via IMGUI_ENABLE_FREETYPE_PLUTOSVG # - add plutosvg + plutovg to imgui - if (HELLOIMGUI_FETCH_FORBIDDEN OR NOT HELLOIMGUI_DOWNLOAD_FREETYPE_IF_NEEDED) + if (HELLOIMGUI_FETCH_FORBIDDEN OR (NOT HELLOIMGUI_DOWNLOAD_FREETYPE_IF_NEEDED AND NOT HELLOIMGUI_FREETYPE_STATIC)) message(WARNING "Cannot add plutosvg because fetching is forbidden") return() endif()