From 1f1c5cb56108f0253299758ca2bb71bc3e191641 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Fri, 13 Oct 2023 12:20:51 -0600 Subject: [PATCH] cmake: Fix DragonFly and GNU/Hurd --- CMakeLists.txt | 2 +- loader/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 35175ed55..5e7dfe1fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -100,7 +100,7 @@ elseif(ANDROID) message(FATAL_ERROR "Android build not supported!") elseif(APPLE) target_compile_definitions(platform_wsi INTERFACE VK_USE_PLATFORM_MACOS_MVK VK_USE_PLATFORM_METAL_EXT) -elseif(CMAKE_SYSTEM_NAME MATCHES "Linux|BSD") +elseif(CMAKE_SYSTEM_NAME MATCHES "Linux|BSD|DragonFly|GNU") option(BUILD_WSI_XCB_SUPPORT "Build XCB WSI support" ON) option(BUILD_WSI_XLIB_SUPPORT "Build Xlib WSI support" ON) option(BUILD_WSI_WAYLAND_SUPPORT "Build Wayland WSI support" ON) diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index e23a3b122..7a0b47af8 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -102,7 +102,7 @@ set(NORMAL_LOADER_SRCS if(WIN32) list(APPEND NORMAL_LOADER_SRCS loader_windows.c dirent_on_windows.c) -elseif(CMAKE_SYSTEM_NAME MATCHES "Linux|BSD") +elseif(CMAKE_SYSTEM_NAME MATCHES "Linux|BSD|DragonFly|GNU") list(APPEND NORMAL_LOADER_SRCS loader_linux.c) target_compile_definitions(loader_specific_options INTERFACE LOADER_ENABLE_LINUX_SORT) endif()