Is OpenSSL compiled from source using Cmake?

I would like to open OpenSSL for our cross-platform project and compile it from source code. We have many platforms (Windows, Mac, iOS, Android, Xamarin Andriod), so using supporting / updating binaries can be a headache. We use cmake.

Has anyone successfully used Cmake to compile OpenSSL? Is there any example?

+6
source share
2 answers

openssl-cmake ( 1 ) is an option. This provides a cmake build system for openssl. You are also no longer dependent on PERL.

0
source

Compiling OpenSSL from a source using CMake

OpenSSL and, for that matter, Boost have their own build systems that are neither wise nor valuable. Therefore, when you say that you compile them, you mean that you want to call them build systems from CMake. This can be done using ExternalProject_Add and usually some kind of script glue, using, for example, Bash .

An example would be the https://github.com/palmerc/CMake_OpenSSL project, which compiles OpenSSL for iOS. It can be a simple template for any library with its own build system.

0
source

Source: https://habr.com/ru/post/983453/


All Articles