Skip to content
Snippets Groups Projects
Commit 38394ecb authored by Julien Schueller's avatar Julien Schueller
Browse files

Detect OSMesa with 16 or 32 bits color channel size.

The autoconf option --with-osmesa-bits=BITS changes the library name: https://www.mesa3d.org/autoconf.html

Some platforms (CentOS) set it to 32 so the soname is OSMesa32 instead of the default.
parent 8e9ee090
No related branches found
No related tags found
No related merge requests found
......@@ -28,13 +28,13 @@ endif()
if(NOT OSMESA_LIBRARY)
# If we have a root defined look there first
if(OSMESA_ROOT)
find_library(OSMESA_LIBRARY OSMesa PATHS ${OSMESA_ROOT}/lib
find_library(OSMESA_LIBRARY NAMES OSMesa OSMesa16 OSMesa32 PATHS ${OSMESA_ROOT}/lib
NO_DEFAULT_PATH
)
endif()
if(NOT OSMESA_LIBRARY)
find_library(OSMESA_LIBRARY OSMesa PATHS
find_library(OSMESA_LIBRARY NAMES OSMesa OSMesa16 OSMesa32 PATHS
/opt/graphics/OpenGL/lib
/usr/openwin/lib
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment