mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-08 20:38:15 +00:00
Fisable glfw only when it is not found and not external.
This commit is contained in:
@@ -17,7 +17,7 @@ include_directories(SYSTEM .)
|
||||
file(GLOB raylib_sources *.c)
|
||||
list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/rglfw.c)
|
||||
|
||||
if(NOT glfw3_FOUND AND "${PLATFORM}" MATCHES "Desktop")
|
||||
if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW AND "${PLATFORM}" MATCHES "Desktop")
|
||||
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
|
||||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
|
Reference in New Issue
Block a user