Skip to content

Commit

Permalink
CMake: Fix regression in USE_EXTERNAL_GLFW=IF_POSSIBLE
Browse files Browse the repository at this point in the history
Fixes: e1e036a ("Disable glfw only when it is not found and not external", raysan5#558)
  • Loading branch information
a3f committed Jul 3, 2018
1 parent 74fd0e7 commit a517d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Expand Up @@ -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 NOT USE_EXTERNAL_GLFW AND "${PLATFORM}" MATCHES "Desktop")
if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW STREQUAL "ON" 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)
Expand Down

0 comments on commit a517d45

Please sign in to comment.