Browse Source

update cmake example project (#3062)

* update cmake example project

* off is the correct one
lesleyrs 2 years ago
parent
commit
818312683e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      projects/CMake/CMakeLists.txt

+ 2 - 1
projects/CMake/CMakeLists.txt

@@ -5,12 +5,13 @@ project(example)
 set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 
 # Dependencies
-set(RAYLIB_VERSION 4.2.0)
+set(RAYLIB_VERSION 4.5.0)
 find_package(raylib ${RAYLIB_VERSION} QUIET) # QUIET or REQUIRED
 if (NOT raylib_FOUND) # If there's none, fetch and build raylib
   include(FetchContent)
   FetchContent_Declare(
     raylib
+    DOWNLOAD_EXTRACT_TIMESTAMP OFF
     URL https://github.com/raysan5/raylib/archive/refs/tags/${RAYLIB_VERSION}.tar.gz
   )
   FetchContent_GetProperties(raylib)