Fix #31 Handle cmake warning about CMP0072

This commit is contained in:
Gyusun Yeom 2020-12-29 19:51:14 +09:00
parent e34677f42b
commit 669ca8dda9

View File

@ -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)