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()