# #openssl # #See http://developer.covenanteyes.com/building-openssl-for-visual-studio/ #and https://cmake.org/Bug/view.php?id=13251 #for how to build openssl for Windows. # #To build openssl on Windows: # # - Requires perl 5.30 in order to configure. # - Set up the toolchain environment prior to compilation by either # 64 bit build: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall x86_amd64 # or # 32 bit build: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall x86 # #The option BUILD_SHARED_LIBS controls the type of library built. # if (WIN32) #Define an empty openssl project. Building under WIN32 is a retrofitted kludge #we have yet to deal with. #Requires perl version 5.30 ExternalProject_Add ( openssl BUILD_IN_SOURCE 1 DOWNLOAD_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "oops" ) endif (WIN32) if (UNIX) #Requires perl 5.30 ExternalProject_Add ( openssl PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 #We will install directly from the source, so no build directory is needed URL https://github.com/openssl/openssl/archive/refs/tags/OpenSSL_1_1_1m.zip URL_MD5 5fba669822402e35121f5a3db360fcc0 CONFIGURE_COMMAND ./config --prefix= BUILD_COMMAND make INSTALL_COMMAND make install ) endif (UNIX)