fixed package mode in FindRaylib (#85)

This commit is contained in:
Loknath Bharti 2020-04-29 06:40:24 -04:00 committed by GitHub
parent e689c710e4
commit feb1a6c874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
find_package(raylib 3.0.0 QUIET)
find_package(raylib 3.0.0 QUIET CONFIG)
if (NOT raylib_FOUND)
include(FetchContent)
FetchContent_Declare(
@ -14,4 +14,4 @@ if (NOT raylib_FOUND)
set(BUILD_GAMES OFF CACHE BOOL "" FORCE) # or games
add_subdirectory(${raylib_SOURCE_DIR} ${raylib_BINARY_DIR})
endif()
endif()
endif()