Giter Club home page Giter Club logo

openssl-cmake's People

Contributors

dependabot[bot] avatar jimmy-park avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

openssl-cmake's Issues

Configure this CMake to be able to edit the OpenSSL code in Visual Studio

Hi,

This is not an issue as your CMake perfectly works.

I'm integrating a new signature algorithm into OpenSSL. I already did it for OpenSSL 1.1.1 using the openssl-cmake project of janbar. However, his project doesn't support OpenSSL 3 and I need to move to this version.

I thought I could use yours, but as it pulls the OpenSSL code from the original openssl git it produces a Visual Studio solution that doesn't allow editing the code!

I pulled the code of OpenSSL from the official git. Is there a way to integrate your CMake with the local code to create a Visual Studio solution where the code of OpenSSL can be edited?

Thanks for your help.

Add support of `CMAKE_OSX_DEPLOYMENT_TARGET` option

In order to compile object files adapted to older macos versions, the CMAKE_OSX_DEPLOYMENT_TARGET option is generally add to the CMakeLists.txt as below,

if(APPLE)
    set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
endif()

But this only works in CMake projects. As the openssl uses the ./configure file, the -mmacosx-version-min flag is not actually passed to the ./configure command. I've tried to add the following part to openssl-cmake/CMakeLists.txt, and it works,

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5343bb4..e7d60e1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,6 +185,10 @@ if(OPENSSL_USE_STATIC_LIBS)
     list(APPEND OPENSSL_CONFIGURE_OPTIONS no-shared)
 endif()
 
+if(APPLE AND CMAKE_OSX_DEPLOYMENT_TARGET)
+    list(APPEND OPENSSL_CONFIGURE_OPTIONS -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET})
+endif()
+
 list(SORT OPENSSL_CONFIGURE_OPTIONS)
 list(REMOVE_DUPLICATES OPENSSL_CONFIGURE_OPTIONS)
 list(PREPEND OPENSSL_CONFIGURE_OPTIONS ${OPENSSL_TARGET_PLATFORM})

I wonder if there is any more suitable implements could help supporting the CMAKE_OSX_DEPLOYMENT_TARGET option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.