diff options
| author | Mun, Gwan-gyeong <kk.moon@samsung.com> | 2016-02-22 20:32:17 +0900 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-02-29 08:27:10 -0700 |
| commit | b443f37101c70fb99107b5118d9d4353a024d504 (patch) | |
| tree | 77fd85aae24787b318adc286ac93d197eb0e978a | |
| parent | b57e5b80823da503877b4de32a826fda408bbf77 (diff) | |
| download | usermoji-b443f37101c70fb99107b5118d9d4353a024d504.tar.xz | |
cmake: GH PR17, Add DisplayServer variables for the WSI interfaces
| -rwxr-xr-x | CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5be176be..e48114bb 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,22 +27,24 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux") option(BUILD_WSI_WAYLAND_SUPPORT "Build Wayland WSI support" OFF) option(BUILD_WSI_MIR_SUPPORT "Build Mir WSI support" OFF) - set(DisplayServer Xcb) - if (BUILD_WSI_XCB_SUPPORT) add_definitions(-DVK_USE_PLATFORM_XCB_KHR) + set(DisplayServer Xcb) endif() if (BUILD_WSI_XLIB_SUPPORT) add_definitions(-DVK_USE_PLATFORM_XLIB_KHR) + set(DisplayServer XLib) endif() if (BUILD_WSI_WAYLAND_SUPPORT) add_definitions(-DVK_USE_PLATFORM_WAYLAND_KHR) + set(DisplayServer Wayland) endif() if (BUILD_WSI_MIR_SUPPORT) add_definitions(-DVK_USE_PLATFORM_MIR_KHR) + set(DisplayServer Mir) endif() else() message(FATAL_ERROR "Unsupported Platform!") |
