CMakeLists.txt: replace GLUT_glut_LIBRARY w/GLUT::GLUT

GLUT_glut_LIBRARY is a cache variable that is not recommended for use:

from cmake-3.24/Modules/FindGLUT.cmake:
This module may set the following variables depending on platform.
These variables may optionally be set to help this module find the
correct files, but clients should not use these as results:

...

``GLUT_glut_LIBRARY``
  The full path to the glut library.

based on a patch in the Krita and vcpkg projects:
7d51396a7a/3rdparty/ext_webp/0009-glut.patch
https://github.com/microsoft/vcpkg/blob/master/ports/libwebp/0009-glut.patch

Change-Id: If54e26cb1e4e2f582e40eebd7e49d7cc566dbb81
This commit is contained in:
James Zern 2022-10-04 15:45:50 -07:00
parent abf73d628e
commit e407d4b37c

View File

@ -544,7 +544,7 @@ if(WEBP_BUILD_VWEBP)
vwebp vwebp
${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES}
exampleutil exampleutil
${GLUT_glut_LIBRARY} GLUT::GLUT
imageioutil imageioutil
webp webp
webpdemux) webpdemux)