From e407d4b37c296643e3824d8f19466fe6211dc5eb Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 4 Oct 2022 15:45:50 -0700 Subject: [PATCH] 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: https://invent.kde.org/graphics/krita/-/blob/7d51396a7a59f7cf73b309a57be86005241c5dbb/3rdparty/ext_webp/0009-glut.patch https://github.com/microsoft/vcpkg/blob/master/ports/libwebp/0009-glut.patch Change-Id: If54e26cb1e4e2f582e40eebd7e49d7cc566dbb81 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30c9fd45..3a334a4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -544,7 +544,7 @@ if(WEBP_BUILD_VWEBP) vwebp ${OPENGL_LIBRARIES} exampleutil - ${GLUT_glut_LIBRARY} + GLUT::GLUT imageioutil webp webpdemux)