summaryrefslogtreecommitdiff
path: root/CMake/options.cmake
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-02-08 19:18:37 +0100
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-02-08 19:18:37 +0100
commit2ee5ca7ef38c6ec9f00763e87c4437e2eadcbe14 (patch)
tree58388bb669f35f8dfb9c9d3f177b55de46da57de /CMake/options.cmake
parent1fdb1f79445ea6edc87900060443aaa8a2dcbc4d (diff)
CMake cleanup: mark two more cache variables "advanced"
Diffstat (limited to 'CMake/options.cmake')
-rw-r--r--CMake/options.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMake/options.cmake b/CMake/options.cmake
index 2d0522ed1..2f4fb47df 100644
--- a/CMake/options.cmake
+++ b/CMake/options.cmake
@@ -611,6 +611,7 @@ if(FLTK_BUILD_GL)
set(OPENGL_FOUND TRUE)
find_library(OPENGL_LIB GL)
get_filename_component(PATH_TO_GLLIB ${OPENGL_LIB} DIRECTORY)
+ # FIXME: we should find a better way to resolve this issue:
# with GL, must use XQuartz libX11 else "Insufficient GL support"
set(OPENGL_LIBRARIES -L${PATH_TO_GLLIB} -lX11 -lGLU -lGL)
unset(HAVE_GL_GLU_H CACHE)
@@ -628,6 +629,12 @@ else()
set(HAVE_GLXGETPROCADDRESSARB FALSE)
endif(FLTK_BUILD_GL)
+mark_as_advanced(OPENGL_LIB) # internal cache variable, not relevant for users
+
+# FIXME: the following is necessary because this variable may have been removed
+# from the cache above. It has been marked "advanced" before in resources.cmake.
+mark_as_advanced(HAVE_GL_GLU_H)
+
if(OPENGL_FOUND)
set(CMAKE_REQUIRED_INCLUDES ${OPENGL_INCLUDE_DIR}/GL)