Merge branch 'develop' of https://github.com/raysan5/raylib into develop

This commit is contained in:
raysan5 2018-02-04 12:26:33 +01:00
commit 8f287e72d2
2 changed files with 5 additions and 5 deletions

View File

@ -45,7 +45,7 @@ before_install:
script:
- mkdir build
- cd build
- cmake -DMACOS_FATLIB=ON -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON -DWITH_SYSTEM_GLFW=IF_POSSIBLE ..
- cmake -DMACOS_FATLIB=ON -DSTATIC_RAYLIB=ON -DSHARED_RAYLIB=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=ON -DUSE_EXTERNAL_GLFW=IF_POSSIBLE ..
- make VERBOSE=1
- make package

View File

@ -1,8 +1,8 @@
# All sorts of things that we need cross project
cmake_minimum_required(VERSION 2.8.0)
set(WITH_SYSTEM_GLFW OFF CACHE STRING "Link raylib against system GLFW instead of embedded one")
set_property(CACHE WITH_SYSTEM_GLFW PROPERTY STRINGS ON OFF IF_POSSIBLE)
set(USE_EXTERNAL_GLFW OFF CACHE STRING "Link raylib against system GLFW instead of embedded one")
set_property(CACHE USE_EXTERNAL_GLFW PROPERTY STRINGS ON OFF IF_POSSIBLE)
# Linking for OS X -framework options
# Will do nothing on other OSes
@ -36,9 +36,9 @@ else()
endif()
endif()
if(WITH_SYSTEM_GLFW STREQUAL "ON")
if(USE_EXTERNAL_GLFW STREQUAL "ON")
find_package(glfw3 3.2.1 REQUIRED)
elseif(WITH_SYSTEM_GLFW STREQUAL "IF_POSSIBLE")
elseif(USE_EXTERNAL_GLFW STREQUAL "IF_POSSIBLE")
find_package(glfw3 3.2.1)
endif()
if (glfw3_FOUND)