aliyun / aliyun-oss-cpp-sdk

Aliyun OSS SDK for C++
Other
188 stars 88 forks source link

1. change the CMakeLists.txt for CMAKE_CROSSCOMPILING add the Linux c… #112

Open bm296672810 opened 2 years ago

bm296672810 commented 2 years ago

…ross compiling

  1. change the CMakeLists.txt for CURL if cross compiling on Linux set the libcurl path example cmake cmd: cmake -Barmbuild -H. -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCURL_DIR=/home/bm/third_libs/aarch64/curl/lib/cmake/CURL -DCURL_INCLUDE_DIRS=/home/bm/third_libs/aarch64/curl/include -DCURL_LIBRARIES=/home/bm/third_libs/aarch64/curl/lib/libcurl.so
CLAassistant commented 2 years ago

CLA assistant check
All committers have signed the CLA.

bm296672810 commented 2 years ago

When I cross-compiled under Ubuntu, I found that it couldn't compile, so I modified CmakeLists.txt and it compiled normally, and attached my cmake command to the commit information