summaryrefslogtreecommitdiffstats
path: root/Modules/FindGLUT.cmake
diff options
context:
space:
mode:
authorMehdi Chinoune <mehdi.chinoune@hotmail.com>2022-04-11 05:03:10 (GMT)
committerMehdi Chinoune <mehdi.chinoune@hotmail.com>2022-04-11 05:03:10 (GMT)
commit2c45465ffb4e855ba5c33bb89eb572c621607493 (patch)
tree950f296a7453831329fc1b2417bfd448effce9e6 /Modules/FindGLUT.cmake
parent804ce3ee42f3526ddd81d0a603ffc7ef2d434161 (diff)
downloadCMake-2c45465ffb4e855ba5c33bb89eb572c621607493.zip
CMake-2c45465ffb4e855ba5c33bb89eb572c621607493.tar.gz
CMake-2c45465ffb4e855ba5c33bb89eb572c621607493.tar.bz2
FindGLUT: Search for freeglut as well using PkgConfig.
Diffstat (limited to 'Modules/FindGLUT.cmake')
-rw-r--r--Modules/FindGLUT.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake
index d12a6d2..43041c5 100644
--- a/Modules/FindGLUT.cmake
+++ b/Modules/FindGLUT.cmake
@@ -97,6 +97,9 @@ endfunction()
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(GLUT QUIET glut)
+ if(NOT GLUT_FOUND)
+ pkg_check_modules(GLUT QUIET freeglut)
+ endif()
if(GLUT_FOUND)
# GLUT_INCLUDE_DIRS is now the official result variable, but
# older versions of CMake only provided GLUT_INCLUDE_DIR.