Revert "Always use latest raylib version for cmake (#1123)" (#1126)

We didn't use the latest version, but a compatible version, which is established by raylib-config-version.cmake.

It's ok to have a minimal version, so revert b7c0d5b6dd.
This commit is contained in:
Ahmad Fatoum 2020-03-09 08:29:47 +01:00 committed by GitHub
parent b7c0d5b6dd
commit eb6f8bd0ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 10 additions and 10 deletions

View file

@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.11) # FetchContent is available in 3.11+
project(example)
# Set this to the minimal version you want to support
find_package(raylib QUIET) # Let CMake search for a raylib-config.cmake
find_package(raylib 2.5 QUIET) # Let CMake search for a raylib-config.cmake
# You could change the QUIET above to REQUIRED and remove this if() clause
# This part downloads raylib and builds it if it's not installed on your system