From d4e8922dfd2ecbed6d895d90b41e296ea1a624cf Mon Sep 17 00:00:00 2001 From: Elms Date: Wed, 13 Apr 2022 21:38:04 -0700 Subject: [PATCH] cmake: fixup install lib structure for windows --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 01089799f..bd89bf020 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1767,7 +1767,7 @@ endif() target_include_directories(wolfssl PUBLIC - $ + $ $ $ ) @@ -2048,9 +2048,11 @@ set(INSTALLED_EXAMPLES # Install the library install(TARGETS wolfssl - DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT wolfssl-targets - LIBRARY) + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib + RUNTIME DESTINATION bin + ) # Install the headers install(DIRECTORY ${WOLFSSL_OUTPUT_BASE}/wolfssl/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wolfssl