demos: Fix CMake file to allow WSI selection
authorKarl Schultz <karl@lunarg.com>
Wed, 4 Jan 2017 20:17:06 +0000 (13:17 -0700)
committerKarl Schultz <karl@lunarg.com>
Wed, 4 Jan 2017 20:17:06 +0000 (13:17 -0700)
Define DEMOS_WSI_SELECTION CMake variable so it can be set
from CMake command line or GUI.

Change-Id: If2531d102fe9b054a1eee4da28431779b173fc10

CMakeLists.txt

index 60eef88..27ab6e5 100644 (file)
@@ -21,7 +21,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
     option(BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON)
     option(BUILD_WSI_WAYLAND_SUPPORT "Build Wayland WSI support" ON)
     option(BUILD_WSI_MIR_SUPPORT "Build Mir WSI support" ON)
-    set(DEMOS_WSI_SELECTION XCB)
+    set(DEMOS_WSI_SELECTION "XCB" CACHE STRING "Select WSI target for demos")
 
     if (BUILD_WSI_XCB_SUPPORT)
         find_package(XCB REQUIRED)