Open EdgarWahn opened 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.
Over at performous we currently use this file: FindCppRest since none was available. It works like a charm.
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.