Closed twghu closed 1 year ago
cmake .. ; cmake --build . in a fresh tree with an empty build directory runs aground with: ...
Found Threads: TRUE
-- Configuring done
CMake Error in CMakeLists.txt:
Imported target "OpenSSL::Crypto" includes non-existent path
"/home/pfl/projects/envoy-openssl/bssl-compat/build/openssl/include" ... After manually creating build/openssl/include, all compiles fine.
But after linking we still get the OS installed openssl: $ ldd libbssl-compat.so linux-vdso.so.1 (0x00007ffd1fdfc000) libcrypto.so.1.1 => /lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007f473efae000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f473edad000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f473eda8000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f473eda3000) /lib64/ld-linux-x86-64.so.2 (0x00007f473f2cd000)
These patches went in as part of #61
Moved OpenSSL library to an ExternalProject_Add() instead of FetchContent_Declare()
If the system opensslconf.h was a different version of OpenSSL to that of the project then an error would be generated complaining about version mismatch.