aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-06-23 17:52:42 +0200
committerGitHub <noreply@github.com>2018-06-23 17:52:42 +0200
commitb1d38100110c736b14fa98b0981b0934d6d404e7 (patch)
tree773d2bf77a12708b454480b8df42db5d07da9a85 /src
parent1630597f08590fd76f13440e9a3792e758b4c7d1 (diff)
parente1e036a6021ddc44c492e9156534c966b56f7009 (diff)
downloadraylib-b1d38100110c736b14fa98b0981b0934d6d404e7.tar.gz
raylib-b1d38100110c736b14fa98b0981b0934d6d404e7.zip
Merge pull request #558 from yurivict/master
Fisable glfw only when it is not found and not external.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7e94d97d..c19cebaf 100755
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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)