You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to build a standalone app using CPM to manage the dependecies. I see that Crow depends on asio and it seems that it I need to install libasio-dev in order use Crow.
There a way to force Crow to use a version of asio that I downloded using CPM. I see that in Crow Cmake file, there is a find_package for asio and that there is Findasio.cmake that does the follwing find_path(ASIO_INCLUDE_DIR asio.hpp)
I tried setting asio_ROOT as suggested by the cmake documentation
its not required to actually install asio as a package. you can just download tgz, unpack it to build/_deps or someehere else and specify the path to asio include dir:
CPMAddPackage(
GITHUB_REPOSITORY CrowCpp/Crow
GIT_TAG v1.2.0
OPTIONS
BUILD_SHARED_LIBS=OFF
ASIO_INCLUDE_DIR=/usr/local/include # or ${ASIO_INCLUDE_DIR} that is valid after asio standalone tgz unpacking
)
and seems the problem is not there. Use asio with tag asio-1-30-2. Crowcpp for now is not compatible with latest asio build because of asio::io_service deprecation (should be replaced to asio::io_context)
Hello all
I want to build a standalone app using CPM to manage the dependecies. I see that Crow depends on asio and it seems that it I need to install libasio-dev in order use Crow.
There a way to force Crow to use a version of asio that I downloded using CPM. I see that in Crow Cmake file, there is a find_package for asio and that there is Findasio.cmake that does the follwing
find_path(ASIO_INCLUDE_DIR asio.hpp)
I tried setting
asio_ROOT
as suggested by the cmake documentationBut it does not work.
Is there a way to override this so that I can pass a path where asio is installed
The text was updated successfully, but these errors were encountered: