I'm trying to develop a restful client and server in Windows and come up with cpprestsdk. I don´t want to use Visual Studio but I cannot compile successfully any example I find on the web.
Right now I've downloaded https://gitlab.com/eidheim/Simple-Web-Server but when I run cmake -H. -Bbuild
I get this error:
"Could NOT find Boost (missing: Boost_INCLUDE_DIR system thread) (Required
is at least version "1.53.0")"
even though I got boost.
Also tried this: cmake -H. -Bbuild -DBOOST_ROOT="C:\Users\myName\Documents\boost_1_58_0
but I get this error: CMake Error at C:/Program Files/CMake/share/cmake-
3.17/Modules/FindPackageHandleStandardArgs.cmake:164 (message):
Could NOT find Boost (missing: system thread) (found suitable version
"1.58.0", minimum required is "1.53.0").
I´ve also tried a simplier example with this CMakeLists:
cmake_minimum_required(VERSION 3.4)
project(main)
set(CMAKE_CXX_STANDARD 11)
target_link_libraries(main PUBLIC cpprestsdk)
find_package(cpprestsdk REQUIRED)
add_executable(main main.cpp)
target_link_libraries(main PRIVATE cpprestsdk)
But also get errors. Can anyone give a hand with these problems, please? Thanks