From 4384558e5302d5ec088896b249b39398ac0966f8 Mon Sep 17 00:00:00 2001 From: Christian Parpart Date: Sun, 28 Jan 2024 01:11:08 +0100 Subject: [PATCH] [vtpty] Fixes Windows built accidentally not including builtin-SSH support Signed-off-by: Christian Parpart --- metainfo.xml | 1 + src/vtpty/CMakeLists.txt | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/metainfo.xml b/metainfo.xml index 5867770cd4..f820b28f1c 100644 --- a/metainfo.xml +++ b/metainfo.xml @@ -107,6 +107,7 @@
    +
  • Fixes Windows built accidentally not including builtin-SSH support (#1427).
  • Fixes some text run segmentation problems, e.g., not making use of some programming ligatures (#395).
  • Fixes mouse scroll wheel events going into the wrong direction if `Alt` modifier was pressed at the same time (#394).
  • Fixes `scripts/install-deps.sh` for openSuSE (Tumbleweed) to install the correct dependencies.
  • diff --git a/src/vtpty/CMakeLists.txt b/src/vtpty/CMakeLists.txt index 724ef0314f..8937637503 100644 --- a/src/vtpty/CMakeLists.txt +++ b/src/vtpty/CMakeLists.txt @@ -71,8 +71,10 @@ set_target_properties(vtpty PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_EXE}") if(FLATPAK) target_compile_definitions(vtpty PRIVATE FLATPAK=1) endif() +if(_include_SshSession_module) + target_compile_definitions(vtpty PUBLIC VTPTY_LIBSSH2=1) +endif() if(LIBSSH2_FOUND) - target_compile_definitions(vtpty PRIVATE VTPTY_LIBSSH2=1) target_compile_options(vtpty PRIVATE ${LIBSSH2_CFLAGS_OTHER}) target_include_directories(vtpty PRIVATE ${LIBSSH2_INCLUDE_DIRS}) target_link_libraries(vtpty PRIVATE ${LIBSSH2_LINK_LIBRARIES})