From 04ac31b05879a981852e70a6ee42f7745ba15d7a Mon Sep 17 00:00:00 2001 From: Stephen Saunders Date: Mon, 16 Aug 2021 16:57:24 -0400 Subject: [PATCH] CMakeLists: define VULKAN_USE_PLATFORM_SDL for all UNIX platforms - remove Linux/macOS restriction --- neo/CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/neo/CMakeLists.txt b/neo/CMakeLists.txt index 33475484..268b5aa2 100644 --- a/neo/CMakeLists.txt +++ b/neo/CMakeLists.txt @@ -424,12 +424,8 @@ if(USE_VULKAN) # Eric: For use with SDL2/Vulkan if(UNIX) - # SRS - Currently only Linux and OSX are supported when using the Vulkan SDL platform - if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") - add_definitions(-DVULKAN_USE_PLATFORM_SDL) - else() - message(FATAL_ERROR "Unsupported OS for Vulkan SDL platform!") - endif() + # SRS - For UNIX-like target OSs use the generic SDL Vulkan platform + add_definitions(-DVULKAN_USE_PLATFORM_SDL) elseif(WIN32) add_definitions(-DVK_USE_PLATFORM_WIN32_KHR) endif()