From 6c053e68dfe56f9b203ace292f6267bf53810fa3 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Tue, 17 May 2022 16:29:54 +0800 Subject: FindGLUT: Remove undocumented variables GLUT_INCLUDE_PATH and GLUT_LIBRARY Fixes: #23370 --- Help/release/dev/FindGLUT-remove-undocumented-vars.rst | 5 +++++ Modules/FindGLUT.cmake | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 Help/release/dev/FindGLUT-remove-undocumented-vars.rst diff --git a/Help/release/dev/FindGLUT-remove-undocumented-vars.rst b/Help/release/dev/FindGLUT-remove-undocumented-vars.rst new file mode 100644 index 0000000..6a0c904 --- /dev/null +++ b/Help/release/dev/FindGLUT-remove-undocumented-vars.rst @@ -0,0 +1,5 @@ +FindGLUT-remove-undocumented-vars +--------------------------------- + +* The :module:`FindGLUT` module no longer provides the undocumented + result variables ``GLUT_LIBRARY`` and ``GLUT_INCLUDE_PATH``. diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake index 72d4db5..320ddad 100644 --- a/Modules/FindGLUT.cmake +++ b/Modules/FindGLUT.cmake @@ -275,8 +275,4 @@ if (GLUT_FOUND) PROPERTY INTERFACE_LINK_LIBRARIES GLUT::Cocoa) endif() endif() - - #The following deprecated settings are for backwards compatibility with CMake1.4 - set (GLUT_LIBRARY ${GLUT_LIBRARIES}) - set (GLUT_INCLUDE_PATH ${GLUT_INCLUDE_DIRS}) endif() -- cgit v0.12