diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2019-11-08 21:42:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-08 21:42:57 +0100 |
| commit | 0ff99b374ea6d024713a5ea562dfcb101f5b47b3 (patch) | |
| tree | e8be97077a71e176095d07e081056127c6d6a93d | |
| parent | c621ddc0f1abfc9b30b380429df2ff454472d21d (diff) | |
| parent | 7f74707ad6537da8b4b21c642c935a83eee6ca30 (diff) | |
Merge pull request #8448 from aguinet/fix/cmake_ogl
cmake: set OpenGL_GL_PREFERENCE as a cached variable that can be modi…
| -rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ecd6284edd..bc0176ba82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -423,7 +423,8 @@ endif() include(CheckLib) include(CheckCXXSourceRuns) -set(OpenGL_GL_PREFERENCE GLVND) +set(OpenGL_GL_PREFERENCE GLVND CACHE STRING "Linux-only: if GLVND, use the vendor-neutral GL libraries (default). If LEGACY, use the legacy ones (might be necessary to have optirun/primusrun work)") +set_property(CACHE OpenGL_GL_PREFERENCE PROPERTY STRINGS GLVND LEGACY) find_package(OpenGL) if (OPENGL_GL) include_directories(${OPENGL_INCLUDE_DIR}) |
