SDL_image: Use stb_image by default for CMake builds (395b6)

From 395b64f4a6da7eb92c5ca633f6b1b9487f6527d6 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 10 May 2022 16:35:08 -0700
Subject: [PATCH] Use stb_image by default for CMake builds

Also disabled building with large codecs by default - you can add them by enabling the appropriate switch in CMakeLists.txt
---
 CMakeLists.txt | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d0e8c28..66a1d34 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -118,7 +118,7 @@ include(GNUInstallDirs)
 
 option(VENDORED_DEFAULT "Default value for *_VENDORED options. Can be overridden for each library. Is only used in the first configure run." ON)
 
-option(BACKEND_STB "Add STB backend" OFF)
+option(BACKEND_STB "Use stb_image for loading JPEG and PNG files" ON)
 cmake_dependent_option(BACKEND_WIC "Add WIC backend (Windows Imaging Component)" OFF "WIN32" OFF)
 cmake_dependent_option(BACKEND_IMAGEIO "Use native Mac OS X frameworks for loading images" ON APPLE OFF)
 
@@ -126,7 +126,7 @@ option(SUPPORT_AVIF "Support loading AVIF images" OFF)
 option(SUPPORT_BMP "Support loading BMP images" ON)
 option(SUPPORT_GIF "Support loading GIF images" ON)
 option(SUPPORT_JPG "Support loading JPEG images" ON)
-option(SUPPORT_JXL "Support loading JXL images" ON)
+option(SUPPORT_JXL "Support loading JXL images" OFF)
 option(SUPPORT_LBM "Support loading LBM images" ON)
 option(SUPPORT_PCX "Support loading PCX images" ON)
 option(SUPPORT_PNG "Support loading PNG images" ON)
@@ -135,10 +135,10 @@ option(SUPPORT_QOI "Support loading QOI images" ON)
 option(SUPPORT_SVG "Support loading SVG images" ON)
 option(SUPPORT_TGA "Support loading TGA images" ON)
 option(SUPPORT_TIF "Support loading TIFF images" ON)
+option(SUPPORT_WEBP "Support loading WEBP images" OFF)
 option(SUPPORT_XCF "Support loading XCF images" ON)
 option(SUPPORT_XPM "Support loading XPM images" ON)
 option(SUPPORT_XV "Support loading XV images" ON)
-option(SUPPORT_WEBP "Support loading WEBP images" OFF)
 
 option(BUILD_SAMPLES "Build the SDL2_image sample program(s)" ON)
 option(BUILD_SHARED_LIBS "Build the library as a shared library" ON)