summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorG3bE <[email protected]>2020-03-09 03:04:29 +1000
committerGitHub <[email protected]>2020-03-08 18:04:29 +0100
commitb7c0d5b6ddfb8fd958803db837e1839ea54f6d37 (patch)
tree1418b97163a2f75a3d44c8bd70a1ebb2779947ea
parent680f9d5772015fcf0edc3cb6b38cb7efda9d4bf1 (diff)
downloadraylib-b7c0d5b6ddfb8fd958803db837e1839ea54f6d37.tar.gz
raylib-b7c0d5b6ddfb8fd958803db837e1839ea54f6d37.zip
Always use latest raylib version for cmake (#1123)
* Always use latest raylib version * Always use latest raylib version * Always use latest raylib version
-rw-r--r--examples/CMakeLists.txt2
-rw-r--r--games/CMakeLists.txt4
-rw-r--r--games/drturtle/CMakeLists.txt2
-rw-r--r--games/just_do/CMakeLists.txt2
-rw-r--r--games/koala_seasons/CMakeLists.txt2
-rw-r--r--games/light_my_ritual/CMakeLists.txt2
-rw-r--r--games/skully_escape/CMakeLists.txt2
-rw-r--r--games/wave_collector/CMakeLists.txt2
-rw-r--r--projects/CMake/CMakeLists.txt2
9 files changed, 10 insertions, 10 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 2879320c..13c4b162 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -96,7 +96,7 @@ endif()
include_directories(BEFORE SYSTEM others/external/include)
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
# Do each example
diff --git a/games/CMakeLists.txt b/games/CMakeLists.txt
index 90a5ed08..93d55c2c 100644
--- a/games/CMakeLists.txt
+++ b/games/CMakeLists.txt
@@ -1,7 +1,7 @@
# Setup the project and settings
project(games)
-# Get the source toegher
+# Get the source together
file(GLOB sources *.c)
set(OUTPUT_EXT)
@@ -18,7 +18,7 @@ if(${PLATFORM} MATCHES "Web")
endif()
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
# Do each game
diff --git a/games/drturtle/CMakeLists.txt b/games/drturtle/CMakeLists.txt
index f5778d9c..7c98937d 100644
--- a/games/drturtle/CMakeLists.txt
+++ b/games/drturtle/CMakeLists.txt
@@ -4,7 +4,7 @@ project(drturtle)
# Executable & linking
add_executable(${PROJECT_NAME} 06_drturtle_final.c)
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)
diff --git a/games/just_do/CMakeLists.txt b/games/just_do/CMakeLists.txt
index f25b6e37..f6cefddf 100644
--- a/games/just_do/CMakeLists.txt
+++ b/games/just_do/CMakeLists.txt
@@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# Executable & linking
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.c ${screen_sources})
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)
diff --git a/games/koala_seasons/CMakeLists.txt b/games/koala_seasons/CMakeLists.txt
index 7e500d1e..d60ffbdd 100644
--- a/games/koala_seasons/CMakeLists.txt
+++ b/games/koala_seasons/CMakeLists.txt
@@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# Executable & linking
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.c ${screen_sources})
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)
diff --git a/games/light_my_ritual/CMakeLists.txt b/games/light_my_ritual/CMakeLists.txt
index a35a34e0..3b1b4f65 100644
--- a/games/light_my_ritual/CMakeLists.txt
+++ b/games/light_my_ritual/CMakeLists.txt
@@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# Executable & linking
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.c ${screen_sources})
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)
diff --git a/games/skully_escape/CMakeLists.txt b/games/skully_escape/CMakeLists.txt
index 51047ca1..fcffdb75 100644
--- a/games/skully_escape/CMakeLists.txt
+++ b/games/skully_escape/CMakeLists.txt
@@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# Executable & linking
add_executable(${PROJECT_NAME} skully_escape.c player.c monster.c ${screen_sources})
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)
diff --git a/games/wave_collector/CMakeLists.txt b/games/wave_collector/CMakeLists.txt
index a87dbeda..633dc0f5 100644
--- a/games/wave_collector/CMakeLists.txt
+++ b/games/wave_collector/CMakeLists.txt
@@ -7,7 +7,7 @@ file(GLOB screen_sources "screens/*.c")
# Executable & linking
add_executable(${PROJECT_NAME} ${PROJECT_NAME}.c ${screen_sources})
if (NOT TARGET raylib)
- find_package(raylib 2.0 REQUIRED)
+ find_package(raylib REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)
diff --git a/projects/CMake/CMakeLists.txt b/projects/CMake/CMakeLists.txt
index ef0d3c1b..8b407d32 100644
--- a/projects/CMake/CMakeLists.txt
+++ b/projects/CMake/CMakeLists.txt
@@ -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 2.5 QUIET) # Let CMake search for a raylib-config.cmake
+find_package(raylib 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