瀏覽代碼

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.
pull/1132/head
Ahmad Fatoum 4 年之前
committed by GitHub
父節點
當前提交
eb6f8bd0ba
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 9 個檔案被更改,包括 10 行新增10 行删除
  1. +1
    -1
      examples/CMakeLists.txt
  2. +2
    -2
      games/CMakeLists.txt
  3. +1
    -1
      games/drturtle/CMakeLists.txt
  4. +1
    -1
      games/just_do/CMakeLists.txt
  5. +1
    -1
      games/koala_seasons/CMakeLists.txt
  6. +1
    -1
      games/light_my_ritual/CMakeLists.txt
  7. +1
    -1
      games/skully_escape/CMakeLists.txt
  8. +1
    -1
      games/wave_collector/CMakeLists.txt
  9. +1
    -1
      projects/CMake/CMakeLists.txt

+ 1
- 1
examples/CMakeLists.txt 查看文件

@ -96,7 +96,7 @@ endif()
include_directories(BEFORE SYSTEM others/external/include)
if (NOT TARGET raylib)
find_package(raylib REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
# Do each example

+ 2
- 2
games/CMakeLists.txt 查看文件

@ -1,7 +1,7 @@
# Setup the project and settings
project(games)
# Get the source together
# Get the source toegher
file(GLOB sources *.c)
set(OUTPUT_EXT)
@ -18,7 +18,7 @@ if(${PLATFORM} MATCHES "Web")
endif()
if (NOT TARGET raylib)
find_package(raylib REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
# Do each game

+ 1
- 1
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 REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)

+ 1
- 1
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 REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)

+ 1
- 1
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 REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)

+ 1
- 1
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 REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)

+ 1
- 1
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 REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)

+ 1
- 1
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 REQUIRED)
find_package(raylib 2.0 REQUIRED)
endif()
target_link_libraries(${PROJECT_NAME} raylib)

+ 1
- 1
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 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

Loading…
取消
儲存