Browse Source

Merge pull request #6639 from JacobBarthelmeh/vcpkg

add include to wolfio.h and replace cmake NAMESPACE
Sean Parkinson 10 months ago
parent
commit
452f6a8898
2 changed files with 4 additions and 1 deletions
  1. 2 1
      CMakeLists.txt
  2. 2 0
      wolfssl/wolfio.h

+ 2 - 1
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.

+ 2 - 0
wolfssl/wolfio.h

@@ -26,6 +26,8 @@
 #ifndef WOLFSSL_IO_H
 #define WOLFSSL_IO_H
 
+#include <wolfssl/ssl.h>
+
 #ifdef __cplusplus
     extern "C" {
 #endif