From 9bc6fc64de90a8850fd647891e5719797d380cf1 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 20 Jul 2023 16:12:56 -0700 Subject: [PATCH] add include to wolfio.h and replace cmake NAMESPACE --- CMakeLists.txt | 3 ++- wolfssl/wolfio.h | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bd9a7487df..51889ebecc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2376,7 +2376,8 @@ install(FILES # Install the export set install(EXPORT wolfssl-targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/wolfssl - FILE wolfssl-config.cmake) + FILE wolfssl-targets.cmake + NAMESPACE wolfssl::) # TODO: Distro build + rules for what to include in the distro. # See various include.am files. diff --git a/wolfssl/wolfio.h b/wolfssl/wolfio.h index 8c32384058..a7d70e01fb 100644 --- a/wolfssl/wolfio.h +++ b/wolfssl/wolfio.h @@ -26,6 +26,8 @@ #ifndef WOLFSSL_IO_H #define WOLFSSL_IO_H +#include + #ifdef __cplusplus extern "C" { #endif