microsoft / cpprestsdk

The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Other
7.99k stars 1.65k forks source link

cpprest cs. cpprestsdk #667

Open EdgarWahn opened 6 years ago

EdgarWahn commented 6 years ago

I noted that the project name in the CMakeLists.txt is set to cpprestsdk (thus cmake sets the PROJECT_NAME variable to cpprestsdk). But all project variables used further start with cppresk instead of cpprestsdk. I don't know if thats intended or just an bug. But from what I know from cmake, my feeling is that this is not good.

Southclaws commented 6 years ago

Could this be the cause of the following error I'm getting?

CMake Error at CMakeLists.txt:16 (find_package):
  By not providing "Findcpprestsdk.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "cpprestsdk", but CMake did not find one.

  Could not find a package configuration file provided by "cpprestsdk" with
  any of the following names:

    cpprestsdkConfig.cmake
    cpprestsdk-config.cmake

  Add the installation prefix of "cpprestsdk" to CMAKE_PREFIX_PATH or set
  "cpprestsdk_DIR" to a directory containing one of the above files.  If
  "cpprestsdk" provides a separate development package or SDK, be sure it has
  been installed.

I tried using find_package(cpprestsdk REQUIRED NAMES cpprestsdk cpprest) as suggested in another issue of the same kind but it didn't work.

Baklap4 commented 6 years ago

Over at performous we currently use this file: FindCppRest since none was available. It works like a charm.