mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-02-19 15:10:42 +00:00
Fix #31 Handle cmake warning about CMP0072
This commit is contained in:
parent
e34677f42b
commit
669ca8dda9
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user