summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-08-31 16:17:04 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2020-08-31 16:17:04 +0200
commit95799bd3641ebe43400aa85dd8cf84405f26aac8 (patch)
treed6061f4d4a793dbdfb2ed4d0b2a7325fa49f3d17 /CMake
parent87b799ba07070cfd4ce574545819d3729deb152b (diff)
Fix for cmake + macOS + OPTION_APPLE_X11 regarding GLU-using apps.
Diffstat (limited to 'CMake')
-rw-r--r--CMake/options.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 0153a1923..ac7fa5bb6 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -195,8 +195,8 @@ if (OPTION_USE_GL)
if (OPTION_APPLE_X11)
set (OPENGL_FOUND TRUE)
set (OPENGL_LIBRARIES -L${PATH_TO_XLIBS} -lGLU -lGL)
- find_file (TEMP_HAVE_GL_GLU_H GL/glu.h PATHS /opt/X11/include)
- set (HAVE_GL_GLU_H ${TEMP_HAVE_GL_GLU_H})
+ unset(HAVE_GL_GLU_H CACHE)
+ find_file (HAVE_GL_GLU_H GL/glu.h PATHS ${X11_INCLUDE_DIR})
elseif (OPTION_APPLE_SDL)
set (OPENGL_FOUND FALSE)
else()