Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenSSL v3+ version number not reporting correctly in CMake #701

Closed
hjmallon opened this issue Oct 24, 2023 · 0 comments · Fixed by #707
Closed

OpenSSL v3+ version number not reporting correctly in CMake #701

hjmallon opened this issue Oct 24, 2023 · 0 comments · Fixed by #707

Comments

@hjmallon
Copy link

hjmallon commented Oct 24, 2023

  • I've read Brief overview section and do understand basic concepts. [Yes]

  • I've read F.A.Q. section and there is no solution to my problem there. [Yes]

  • I've read Code of Conduct, I promise to be polite and will do my best at being constructive. [Yes]

  • I've read Reporting bugs section carefully. [Yes]

  • I've checked that all the hunter_add_package/find_package API used by me in the example is the same as in documentation. [Yes]

  • I'm using latest Hunter URL/SHA1. [Yes]

  • I've created SSCCE reproducing the issue:

# CMakeLists.txt

cmake_minimum_required(VERSION 3.5)

include("cmake/HunterGate.cmake")
HunterGate(
    URL "..."
    SHA1 "..."
)

project(foo)

hunter_add_package(OpenSSL)
find_package(OpenSSL CONFIG REQUIRED)

Just trying the new OpenSSL, my version number is coming out as (found version # define OPENSSL_VERSION_MAJOR 3.# define OPENSSL_VERSION_MINOR 1.# define OPENSSL_VERSION_PATCH 0)?

Looking at the CMake code I'm not sure file(STRINGS supports regex capture groups?

See #668

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant