mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 01:22:51 +08:00
0c8139dbe8
* [openxr] add initial port * [openxr-loader] Set executable suffix * [openxr-loader] Use correct checks for Windows * [openxr-loader] Add failure messages for unsupported platforms
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
diff --git a/src/cmake/presentation.cmake b/src/cmake/presentation.cmake
|
|
index 3970546..c2e7bc3 100644
|
|
--- a/src/cmake/presentation.cmake
|
|
+++ b/src/cmake/presentation.cmake
|
|
@@ -12,21 +12,17 @@ endif()
|
|
|
|
message(STATUS "Using presentation backend: ${PRESENTATION_BACKEND}")
|
|
|
|
-find_package(PkgConfig REQUIRED)
|
|
|
|
if( PRESENTATION_BACKEND MATCHES "xlib" )
|
|
- pkg_search_module(X11 REQUIRED x11)
|
|
- pkg_search_module(XXF86VM REQUIRED xxf86vm)
|
|
- pkg_search_module(XRANDR REQUIRED xrandr)
|
|
-
|
|
add_definitions( -DSUPPORT_X )
|
|
add_definitions( -DOS_LINUX_XLIB )
|
|
set( XLIB_LIBRARIES
|
|
- ${X11_LIBRARIES}
|
|
- ${XXF86VM_LIBRARIES}
|
|
- ${XRANDR_LIBRARIES} )
|
|
+ X11
|
|
+ Xxf86vm
|
|
+ Xrandr)
|
|
|
|
elseif( PRESENTATION_BACKEND MATCHES "xcb" )
|
|
+ find_package(PkgConfig REQUIRED)
|
|
# XCB + XCB GLX is limited to OpenGL 2.1
|
|
# add_definitions( -DOS_LINUX_XCB )
|
|
# XCB + Xlib GLX 1.3
|
|
@@ -49,6 +45,7 @@ elseif( PRESENTATION_BACKEND MATCHES "xcb" )
|
|
${X11_LIBRARIES} )
|
|
|
|
elseif( PRESENTATION_BACKEND MATCHES "wayland" )
|
|
+ find_package(PkgConfig REQUIRED)
|
|
pkg_search_module(WAYLAND_CLIENT REQUIRED wayland-client)
|
|
pkg_search_module(WAYLAND_EGL REQUIRED wayland-egl)
|
|
pkg_search_module(WAYLAND_SCANNER REQUIRED wayland-scanner)
|