mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 14:20:27 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user