Skip to content

Commit bc89bdf

Browse files
ccawley2011madebr
authored andcommitted
Extend documentation regarding CMake 3.12
1 parent 14da8bf commit bc89bdf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ find_package(SDL3 REQUIRED CONFIG)
6565
If CMake is still not able to find SDL, the minimum required CMake version of your project is probably less than 3.12.
6666
Since this version, CMake will also look for packages using environment variables as hints (see [CMP0074](https://cmake.org/cmake/help/latest/policy/CMP0074.html)).
6767

68-
When bumping the minimum required CMake version is not desirable, here are 2 alternative methods (pick one!):
68+
When bumping the minimum required CMake version is not desirable, here are 3 alternative methods (pick one!):
6969
- 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)
7070
- Add `-DCMAKE_POLICY_DEFAULT_CMP0074=NEW` to the CMake configure command (this only works when the actual CMake version is >= 3.12).
71+
- Append `...3.12` to the minimum CMake version - this enables the new behaviour for policies introduced in CMake 3.12 or earlier while preserving support for older versions.
7172

7273
### `install-linux-dependencies` does things on non-Linux GitHub runners
7374

0 commit comments

Comments
 (0)