diff --git a/README b/README index daa7e685..e75719a6 100644 --- a/README +++ b/README @@ -84,6 +84,9 @@ Look in the src/CMakeList.txt file to tweak options. The Qt (or GTK) GUI is required and automatically builds as part of the build. The Qt GUI is the default. When invoking cmake, the GTK GUI can be built (instead of Qt) by specifying a -DGTK=1 on the command line. See above build instructions. +OpenGL options: +For Linux builds, the OpenGL library preference can be either GLVND or LEGACY (default). +To use GLVND OpenGL, add a -DGLVND=1 on the cmake command line. 5 - LUA Scripting ----------------- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 03331a32..f414cf5d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,7 +1,9 @@ if ( ${GTK} ) +message( STATUS "GUI backend: GTK") set( APP_NAME fceux-gtk) else() +message( STATUS "GUI backend: QT") set( APP_NAME fceux) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTORCC ON) @@ -24,8 +26,13 @@ else(WIN32) # Non Windows System # UNIX (Linux or Mac OSX) - #set (OpenGL_GL_PREFERENCE GLVND) - set (OpenGL_GL_PREFERENCE LEGACY) + if ( ${GLVND} ) + message( STATUS "OpenGL preference: GLVND") + set (OpenGL_GL_PREFERENCE GLVND) + else() + message( STATUS "OpenGL preference: LEGACY") + set (OpenGL_GL_PREFERENCE LEGACY) + endif() # Use the built-in cmake find_package functions to find dependencies # Use package PkgConfig to detect headers/library what find_package cannot find.