fixed package mode in FindRaylib (#85)
This commit is contained in:
parent
e689c710e4
commit
feb1a6c874
@ -1,4 +1,4 @@
|
|||||||
find_package(raylib 3.0.0 QUIET)
|
find_package(raylib 3.0.0 QUIET CONFIG)
|
||||||
if (NOT raylib_FOUND)
|
if (NOT raylib_FOUND)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
@ -14,4 +14,4 @@ if (NOT raylib_FOUND)
|
|||||||
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
|
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
|
||||||
add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR})
|
add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user