Merge pull request #763 from daleglass/fix-opengl-cmake-warning

Set GL preference to GLVND
This commit is contained in:
kasenvr 2020-10-08 19:03:34 -04:00 committed by GitHub
commit 76093185b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 14 additions and 1 deletions

View file

@ -238,6 +238,8 @@ target_include_directories(${TARGET_NAME} PRIVATE "${CMAKE_BINARY_DIR}/libraries
target_openssl()
target_bullet()
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()
add_crashpad()
target_breakpad()

View file

@ -13,6 +13,7 @@ include_hifi_library_headers(ktx)
include_hifi_library_headers(render)
include_hifi_library_headers(procedural)
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()
GroupSources("src/display-plugins")

View file

@ -1,5 +1,7 @@
set(TARGET_NAME gl)
setup_hifi_library(Gui Widgets)
link_hifi_libraries(shared)
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()

View file

@ -2,5 +2,7 @@ set(TARGET_NAME gpu-gl-common)
setup_hifi_library(Concurrent)
link_hifi_libraries(shared gl gpu shaders)
GroupSources("src")
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()

View file

@ -5,5 +5,7 @@ if (UNIX)
target_link_libraries(${TARGET_NAME} pthread)
endif(UNIX)
GroupSources("src")
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()

View file

@ -3,4 +3,5 @@ setup_hifi_library(Multimedia Network Qml Quick WebChannel WebSockets ${PLATFORM
link_hifi_libraries(shared networking gl)
# Required for some low level GL interaction in the OffscreenQMLSurface
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()

View file

@ -4,4 +4,5 @@ link_hifi_libraries(shared networking qml gl audio audio-client plugins pointers
include_hifi_library_headers(controllers)
# Required for some low level GL interaction in the OffscreenQMLSurface
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()

View file

@ -21,6 +21,8 @@ link_hifi_libraries(
)
target_compile_definitions(${TARGET_NAME} PRIVATE USE_GL)
set(OpenGL_GL_PREFERENCE "GLVND")
target_opengl()
#target_vulkan()
@ -38,4 +40,4 @@ install(
PATTERN "*.exp" EXCLUDE
)
endif()
endif()