diff --git a/CMakeLists.txt b/CMakeLists.txt index 84c2a56..8338ab9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -352,6 +352,19 @@ if(LIBRESSL_APPS AND LIBRESSL_TESTS) add_subdirectory(tests) endif() +if (BUILD_APPLE_XCFRAMEWORK) + # Create the super library from object libraries + add_library(LibreSSL_xcframework + $ $ $) + set_target_properties(LibreSSL_xcframework PROPERTIES + OUTPUT_NAME ressl) + + if(ENABLE_LIBRESSL_INSTALL) + install(TARGETS LibreSSL_xcframework + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + endif(ENABLE_LIBRESSL_INSTALL) +endif(BUILD_APPLE_XCFRAMEWORK) + if(ENABLE_LIBRESSL_INSTALL) if(NOT MSVC) # Create pkgconfig files.