libssh: missing patch

This commit is contained in:
Jerome Duval
2023-05-06 18:39:17 +02:00
parent ea224af5fc
commit e9104f2c46

View File

@@ -41,3 +41,34 @@ index d6245c0..e596c93 100644
--
2.37.3
From 873d12efaad41821dd01fbb59b2c5ed0a1a11bd9 Mon Sep 17 00:00:00 2001
From: Jerome Duval <jerome.duval@gmail.com>
Date: Sat, 6 May 2023 18:37:22 +0200
Subject: [PATCH] disable x11 example
---
examples/CMakeLists.txt | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index 72ceed2..22dbe51 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -35,9 +35,11 @@ if (UNIX AND NOT WIN32)
target_compile_options(ssh-client PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_link_libraries(ssh-client ssh::ssh)
- add_executable(ssh-X11-client ssh_X11_client.c ${examples_SRCS})
- target_compile_options(ssh-X11-client PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
- target_link_libraries(ssh-X11-client ssh::ssh)
+ if (NOT HAIKU)
+ add_executable(ssh-X11-client ssh_X11_client.c ${examples_SRCS})
+ target_compile_options(ssh-X11-client PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
+ target_link_libraries(ssh-X11-client ssh::ssh)
+ endif (NOT HAIKU)
if (WITH_SERVER AND (ARGP_LIBRARIES OR HAVE_ARGP_H))
if (HAVE_LIBUTIL)
--
2.37.3