Skip to content

Commit e1e036a

Browse files
committed
Fisable glfw only when it is not found and not external.
1 parent 1630597 commit e1e036a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ include_directories(SYSTEM .)
1717
file(GLOB raylib_sources *.c)
1818
list(REMOVE_ITEM raylib_sources ${CMAKE_CURRENT_SOURCE_DIR}/rglfw.c)
1919

20-
if(NOT glfw3_FOUND AND "${PLATFORM}" MATCHES "Desktop")
20+
if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW AND "${PLATFORM}" MATCHES "Desktop")
2121
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
2222
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
2323
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)

0 commit comments

Comments
 (0)