diff options
author | Mehdi Chinoune <mehdi.chinoune@hotmail.com> | 2022-04-11 05:03:10 (GMT) |
---|---|---|
committer | Mehdi Chinoune <mehdi.chinoune@hotmail.com> | 2022-04-11 05:03:10 (GMT) |
commit | 2c45465ffb4e855ba5c33bb89eb572c621607493 (patch) | |
tree | 950f296a7453831329fc1b2417bfd448effce9e6 /Modules/FindGLUT.cmake | |
parent | 804ce3ee42f3526ddd81d0a603ffc7ef2d434161 (diff) | |
download | CMake-2c45465ffb4e855ba5c33bb89eb572c621607493.zip CMake-2c45465ffb4e855ba5c33bb89eb572c621607493.tar.gz CMake-2c45465ffb4e855ba5c33bb89eb572c621607493.tar.bz2 |
FindGLUT: Search for freeglut as well using PkgConfig.
Diffstat (limited to 'Modules/FindGLUT.cmake')
-rw-r--r-- | Modules/FindGLUT.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindGLUT.cmake b/Modules/FindGLUT.cmake index d12a6d2..43041c5 100644 --- a/Modules/FindGLUT.cmake +++ b/Modules/FindGLUT.cmake @@ -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. |