Swagger cpprest第三方

时间:2018-03-07 09:55:28

标签: c++ rest

我试图用nodejs服务器和cpp客户端测试基本的petstore示例。尝试使用cmake构建项目时,出现以下错误:

Failed to find cpprest SDK (or missing components).  Double check that
  "CPPREST_ROOT" is properly set

CMakeLists.txt的第39行,我有:

#set(CPPREST_ROOT ${PROJECT_SOURCE_DIR}/../../../developmentTools/3rdParty/cpprest)"

我应该使用哪个第三方cpprest库?

2 个答案:

答案 0 :(得分:3)

使用以下CPP Rest SDK:

Microsoft/cpprestsdk

使用以下命令构建项目:

cmake -D CPPREST_ROOT=/usr .

答案 1 :(得分:0)

只有一个cpprest项目:https://github.com/Microsoft/cpprestsdk