setup-sdl: Document alternative way to use SDL from setup-sdl

From 5cc455d33c1afd6a2f99849ac5b9aff36224e136 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 11 Jan 2024 11:08:01 +0100
Subject: [PATCH] Document alternative way to use SDL from setup-sdl

---
 README.md | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 1fc0f25..f08e6a9 100644
--- a/README.md
+++ b/README.md
@@ -50,17 +50,17 @@ See [action.yml](action.yml) for an overview of all options, and its defaults.
 
 ### My CMake project does not find SDL
 
-First, make sure you're looking for SDL using `find_package`:
+First, make sure you're looking for SDL using [`find_package`](https://cmake.org/cmake/help/latest/command/find_package.html):
 ```cmake
 # SDL2
-find_package(SDL2 CONFIG REQUIRED)
+find_package(SDL2 REQUIRED CONFIG)
 
 # SDL3
-find_package(SDL3 CONFIG REQUIRED)
+find_package(SDL3 REQUIRED CONFIG)

If CMake is still not able to find SDL, the minimum required CMake version of your project is probably less than 3.12.
Since this version, CMake will also look for packages using environment variables as hints (see CMP0074).

-When bumping the minimum CMake version is not desirable, here are 2 alternative methods (pick one!):
– Add -DCMAKE_PREFIX_PATH=${{ steps.sdl.outputs.prefix }} to the CMake configure command (or add SDL’s path to an already-existing -DCMAKE_PREFIX_PATH= argument)
+When bumping the minimum required CMake version is not desirable, here are 2 alternative methods (pick one!):
± Add -DCMAKE_PREFIX_PATH=${{ steps.sdl.outputs.prefix }} to the CMake configure command (or add SDL’s prefix to an already-existing -DCMAKE_PREFIX_PATH= argument)

  • Add -DCMAKE_POLICY_DEFAULT_CMP0074=NEW to the CMake configure command (this only works when the actual CMake version is >= 3.12).