diff --git a/CMakeLists.txt b/CMakeLists.txt index 3488954..7ea46ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,10 @@ if(MSVC) list(APPEND LIBGLEW_SRCS ${RC_DIR}/glew.rc) endif() +if(POLICY CMP0072) + set(OpenGL_GL_PREFERENCE LEGACY) +endif() + find_package(OpenGL REQUIRED) if(NOT USE_GLU)