From 19439fcfd889387a326116a92f4e180d084061ac Mon Sep 17 00:00:00 2001 From: Sven Fischer Date: Fri, 17 Nov 2023 18:16:46 +0100 Subject: [PATCH] Add binary dir to target include directories Build binary dir contains the libssh_version.h file. By adding the binary dir to the target include path, the include file can be found by projects which use libssh as a sub-project by add_subdirectory(). Signed-off-by: Sven Fischer Reviewed-by: Jakub Jelen --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c06cf697..6ad4fe72 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -346,6 +346,7 @@ endif () target_include_directories(ssh PUBLIC $ + $ $ PRIVATE ${LIBSSH_PRIVATE_INCLUDE_DIRS}) @@ -409,6 +410,7 @@ if (BUILD_STATIC_LIB) target_include_directories(ssh-static PUBLIC $ + $ $ PRIVATE ${LIBSSH_PRIVATE_INCLUDE_DIRS}) target_link_libraries(ssh-static