mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-04-15 21:32:06 +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)
|
list(APPEND LIBGLEW_SRCS ${RC_DIR}/glew.rc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(POLICY CMP0072)
|
||||||
|
set(OpenGL_GL_PREFERENCE LEGACY)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
|
|
||||||
if(NOT USE_GLU)
|
if(NOT USE_GLU)
|
||||||
|
Loading…
Reference in New Issue
Block a user