FindOpenSSL: Fix OpenSSL 3.0.0 version extraction
!4805 (merged) was almost right, but not quite:
-- The C compiler identification is GNU 5.5.0
-- The CXX compiler identification is GNU 5.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /home/bbrumley/.cmake/Modules/FindOpenSSL.cmake:446 (file):
Syntax error in cmake code at
/home/bbrumley/.cmake/Modules/FindOpenSSL.cmake:447
when parsing string
^#[\t ]*define[\t ]+OPENSSL_VERSION_STR[\t ]+\"([0-9])+\.([0-9])+\.([0-9])+\".*
Invalid escape sequence \.
Call Stack (most recent call first):
CMakeLists.txt:7 (find_package)
-- Configuring incomplete, errors occurred!
Tested with openssl-3.0.0-alpha3
.
Backport: release
Topic-rename: FindOpenSSL-3.0