FindGLUT: Quiet pkg-config errors

Issue: #23314
This commit is contained in:
nega
2022-03-30 14:05:14 -04:00
committed by Brad King
parent a7b325e203
commit b2a7f73b55

View File

@@ -94,9 +94,9 @@ function(_add_glut_target_simple)
IMPORTED_LOCATION "${GLUT_glut_LIBRARY}")
endfunction()
find_package(PkgConfig)
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(GLUT glut)
pkg_check_modules(GLUT QUIET glut)
if(GLUT_FOUND)
# GLUT_INCLUDE_DIRS is now the official result variable, but
# older versions of CMake only provided GLUT_INCLUDE_DIR.