aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMun, Gwan-gyeong <kk.moon@samsung.com>2016-02-22 20:32:17 +0900
committerMark Lobodzinski <mark@lunarg.com>2016-02-29 08:27:10 -0700
commitb443f37101c70fb99107b5118d9d4353a024d504 (patch)
tree77fd85aae24787b318adc286ac93d197eb0e978a
parentb57e5b80823da503877b4de32a826fda408bbf77 (diff)
downloadusermoji-b443f37101c70fb99107b5118d9d4353a024d504.tar.xz
cmake: GH PR17, Add DisplayServer variables for the WSI interfaces
-rwxr-xr-xCMakeLists.txt6
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!")