diff options
| author | Ahmad Fatoum <[email protected]> | 2018-10-11 13:39:23 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2018-10-11 13:41:47 +0200 |
| commit | 9b25da5f98475e13359d47da4aa64a969b56dac5 (patch) | |
| tree | 5d8440e2085cf85754a1eef4175c05fe2594cfa0 /src/CMakeLists.txt | |
| parent | 9ac5a8b1a0629b30582128c6bf7f8422d422da67 (diff) | |
| download | raylib-9b25da5f98475e13359d47da4aa64a969b56dac5.tar.gz raylib-9b25da5f98475e13359d47da4aa64a969b56dac5.zip | |
CMake: Fix build breakage trying to set OpenGL version
Fixes #660.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9b745cfe..21a10a64 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -125,6 +125,7 @@ elseif(${PLATFORM} MATCHES "Raspberry Pi") endif() if (${OPENGL_VERSION}) + MESSAGE(STATUS "Detected OpenGL version: ${OPENGL_VERSION}") set(${SUGGESTED_GRAPHICS} "${GRAPHICS}") if (${OPENGL_VERSION} MATCHES "3.3") set(GRAPHICS "GRAPHICS_API_OPENGL_33") @@ -135,7 +136,7 @@ if (${OPENGL_VERSION}) elseif (${OPENGL_VERSION} MATCHES "ES 2.0") set(GRAPHICS "GRAPHICS_API_OPENGL_ES2") endif() - if (${SUGGESTED_GRAPHICS} AND NOT "${SUGGESTED_GRAPHICS}" STREQUAL "${GRAPHICS}") + if ("${SUGGESTED_GRAPHICS}" AND NOT "${SUGGESTED_GRAPHICS}" STREQUAL "${GRAPHICS}") message(WARNING "You are overriding the suggested GRAPHICS=${SUGGESTED_GRAPHICS} with ${GRAPHICS}! This may fail") endif() endif() |
