diff --git a/CMakeLists.txt b/CMakeLists.txt index a1b9858fa13..088f154502f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -464,6 +464,7 @@ endif (PROJ_FOUND) find_package(FOX) if (FOX_FOUND) + set(OpenGL_GL_PREFERENCE LEGACY) find_package(OpenGL) if (OPENGL_FOUND AND OPENGL_GLU_FOUND) include_directories(SYSTEM ${FOX_INCLUDE_DIR})