Closed rib2bit closed 4 years ago
I found this problem is related to this: https://github.com/microsoft/cpprestsdk/pull/1439
Hi @rib2bit, thanks for reporting this issue! I can't reproduce this issue on my machine, could you provide failure log /Users/hoge/vcpkg/buildtrees/cpprestsdk/config-x64-osx-dbg-err.log?
Thanks.
@JackBoosY Here is config-x64-osx-dbg-err.log
-- Setting clang options
CMake Error at cmake/cpprest_find_openssl.cmake:40 (list):
list GET given empty list
Call Stack (most recent call first):
src/CMakeLists.txt:130 (cpprest_find_openssl)
It seems that cpprest_find_openssl.cmake
expects openssl is installed with homebrew for macOS, but my environment does not have that.
I finally resolved this problem with the patch:
https://github.com/microsoft/cpprestsdk/pull/1439/commits/ccd74e1b62fcffa3c7ac37fc90152433b20baf2f
Thanks.
cmake -G Ninja ../Release -DCMAKE_BUILD_TYPE=Debug -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@1.1 -DOPENSSL_INCLUDE_DIR=/opt/homebrew/opt/openssl@1.1/include
Host Environment
To Reproduce Steps to reproduce the behavior:
./vcpkg install cpprestsdk
Failure logs
config-x64-osx-dbg-out.log
CMakeError.log
Additional context