Fix, that display only build under Linux works
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 602f01f..4ed5092 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -44,6 +44,10 @@
add_definitions(-DVK_USE_PLATFORM_MIR_KHR)
set(DisplayServer Mir)
endif()
+
+ if (NOT BUILD_WSI_XCB_SUPPORT AND NOT BUILD_WSI_XLIB_SUPPORT AND NOT BUILD_WSI_WAYLAND_SUPPORT AND NOT BUILD_WSI_MIR_SUPPORT)
+ set(DisplayServer Display)
+ endif()
else()
message(FATAL_ERROR "Unsupported Platform!")
endif()
@@ -74,7 +78,9 @@
endif()
if(NOT WIN32)
- find_package(XCB REQUIRED)
+ if (BUILD_WSI_XCB_SUPPORT)
+ find_package(XCB REQUIRED)
+ endif()
set (BUILDTGT_DIR build)
set (BINDATA_DIR Bin)
set (LIBSOURCE_DIR Lib)