mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-03 04:03:23 +03:00
FindGLUT: Search for freeglut as well using PkgConfig.
This commit is contained in:
1 parent
804ce3ee42
commit
2c45465ffb
1 file changed
+3
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user