mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Adding pcsx2-libretro EXCLUDE_FROM_ALL when the core is disabled kept it out of the default `all`, but the subdirectory still emitted an unconditional install(TARGETS pcsx2-libretro) rule. That put yaps2_libretro.so into the `install` target and left the target buildable, so install-driven builds (ninja/make install, packaging) and "build all targets" flows (IDEs) compiled the libretro core even when someone only wanted yaps2-sdl. Gate the add_subdirectory on ENABLE_LIBRETRO so that when it's off (the default) neither the target nor its install rule exists. Build the core with -DENABLE_LIBRETRO=ON (as the nightly's libretro job already does). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>