Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-315

Improve OpenSSL detection on CentOS with mixed setup of 1.0 and 1.1 versions

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.5
    • None
    • library
    • None
    • 0
    • SDK10

    Description

      EPEL for CentOS install OpenSSL 1.1 in very peculiar way, which does not allow using OPENSSL_ROOT_DIR macro, because headers installed at /usr/include/openssl11 while libraries live at /usr/lib64/openssl11. CMake itself cannot detect this kind of setup, and if you point to right openssl11 headers, still tries to use OpenSSL 1.0 libraries during link phase.

       

      As a solution, we must detect this unusable mix, and fallback to pkg-config path to detect OpenSSL. We don't want to use pkg-config by default, as cmake's FindPackage(OpenSSL) is preferred and more flexible way.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              avsej Sergey Avseyev
              avsej Sergey Avseyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes