FindGLUT: Search for freeglut as well using PkgConfig.

This commit is contained in:
Mehdi Chinoune committed 2022-04-11 06:03:10 +01:00
1 parent 804ce3ee42
commit 2c45465ffb
1 file changed
+3
+3
View File
@@ -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.