Permalink
Browse files

Support Vulkan on any Unix

In particular, it works FreeBSD
  • Loading branch information...
myfreeweb committed Dec 26, 2017
1 parent f3783bd commit f4d76c840cbb38f0cb56c1f240d7d632dcc73f4a
Showing with 3 additions and 4 deletions.
  1. +3 −4 CMakeLists.txt
View
@@ -69,8 +69,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Android")
set(ANDROID ON)
endif()
# Of the CMake platforms, we only support Vulkan on Android and Windows.
if(ANDROID OR WIN32 OR LINUX)
# We only support Vulkan on Unix, Android and Windows.
if(ANDROID OR WIN32 OR (UNIX AND NOT APPLE))
set(VULKAN ON)
else()
add_definitions(-DNO_VULKAN)
@@ -106,8 +106,7 @@ else()
message("Normal Build")
endif()
if(LINUX AND VULKAN)
message("Using XCB extension...")
if(UNIX AND NOT APPLE AND VULKAN)
add_definitions(-DVK_USE_PLATFORM_XLIB_KHR)
add_definitions(-DVK_USE_PLATFORM_WAYLAND_KHR)
# add_definitions(-DVK_USE_PLATFORM_XCB_KHR)

0 comments on commit f4d76c8

Please sign in to comment.