From edca1d37478ed0d5b02e1a79d536d4d031f7d9eb Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Mon, 26 May 2025 21:10:17 +0200 Subject: [PATCH] Skip imgui when LIBRETRO is enabled --- CMakeLists.txt | 6 +++++- ext/CMakeLists.txt | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a247bc864b..7a66cf76b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -938,7 +938,11 @@ if(IOS) target_compile_definitions(Common PUBLIC GLES_SILENCE_DEPRECATION) endif() -target_link_libraries(Common Ext::Snappy cpu_features imgui) +target_link_libraries(Common Ext::Snappy cpu_features) + +if(NOT LIBRETRO) + target_link_libraries(Common imgui) +endif() if(ARM64) if(ANDROID) diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt index a6e06e112d..248cb03e4b 100644 --- a/ext/CMakeLists.txt +++ b/ext/CMakeLists.txt @@ -30,11 +30,13 @@ add_subdirectory(glslang EXCLUDE_FROM_ALL) add_subdirectory(snappy) add_subdirectory(lua-build) add_subdirectory(minimp3) -add_subdirectory(imgui) add_subdirectory(at3_standalone) add_subdirectory(udis86) add_subdirectory(SPIRV-Cross-build) add_subdirectory(rcheevos-build) +if(NOT LIBRETRO) + add_subdirectory(imgui) +endif() if(NOT HTTPS_NOT_AVAILABLE) add_subdirectory(naett-build) endif()