find_library in CMake always tries to find the library installed, but in the case when the same library was build from source as a CMake dependency, find_library would fail.
To fix the issue, CMakeLists.txt is changed to call find_library for mbedtls only if needed.
"ld: symbol(s) not found for architecture x86_64", i guess it needs to check if the architecture matches as well, or is it a different reason it fails?
find_library
in CMake always tries to find the library installed, but in the case when the same library was build from source as a CMake dependency,find_library
would fail.To fix the issue, CMakeLists.txt is changed to call
find_library
for mbedtls only if needed.