【发布时间】:2021-08-26 17:15:53
【问题描述】:
我使用 CMake 3.21.2 并收到此错误:
$ cmake ../aws-sdk-cpp-1.9.89 -DCMAKE_BUILD_TYPE=Release
...
-- The C compiler identification is GNU 7.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Updating version info to 1.9.89
-- Custom memory management disabled
-- Performing Test CURL_HAS_H2
-- Performing Test CURL_HAS_H2 - Success
-- Performing Test CURL_HAS_TLS_PROXY
-- Performing Test CURL_HAS_TLS_PROXY - Success
CMake Error at aws-cpp-sdk-core/CMakeLists.txt:504 (aws_use_package):
Unknown CMake command "aws_use_package".
-- Configuring incomplete, errors occurred!
See also "/home/ec2-user/sdk/CMakeFiles/CMakeOutput.log".
$
我使用 AWS 步骤,但不知道。 我必须在 CMakeFile.txt 中为这个简单的构建配置一些东西吗?
有什么建议吗?
非常感谢
【问题讨论】:
标签: aws-sdk-cpp