mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
FindGLUT: Search for freeglut as well using PkgConfig.
This commit is contained in:
@@ -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