From cb66c89dfa096239be8522fc3a518c94b76d0cd4 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Sun, 4 Feb 2018 12:08:36 +0100 Subject: [PATCH] CMake: Rename WITH_SYSTEM_GLFW to USE_EXTERNAL_GLFW for consistency with Makefile. Requested by @raysan5 in #453. --- .travis.yml | 2 +- utils.cmake | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b22892eb..55d8357d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/utils.cmake b/utils.cmake index ad709b22..68fd1f76 100644 --- a/utils.cmake +++ b/utils.cmake @@ -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)