Merge topic 'FindGLUT-pkg-config' into release-3.25

919ab832e8 FindGLUT: Fix regression when pkg-config is not available

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7840
This commit is contained in:
Brad King
2022-10-28 13:59:51 +00:00
committed by Kitware Robot

View File

@@ -68,9 +68,11 @@ include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
find_package(PkgConfig QUIET)
pkg_check_modules(PC_GLUT QUIET glut)
if(NOT PC_GLUT_FOUND)
pkg_check_modules(PC_GLUT QUIET freeglut)
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_GLUT QUIET glut)
if(NOT PC_GLUT_FOUND)
pkg_check_modules(PC_GLUT QUIET freeglut)
endif()
endif()
if(WIN32)