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.96k
stars
1.65k
forks
source link
Compile boost and cpprestsdk in the same cake project #1655
I have a project where I want to compile some boost libraries and cpprestsdk from source in the same cmake project. I added boost compilation as a custom target and was able to use it for other custom modules but no luck with cpprestsdk.
The problem is that restsdk uses cmake's FindBoost module to locate and link boost libs. FindBoost locates headers and binaries together, so it only the header files are available then it will fail and the cmake configure step fails. Since I'm building boost libs in the same project as restsdk, the boost lib binaries are not available before FindBoost runs.
Is there a way to tell restsdk that boost will be built later so it will not look for boost during configure step?
Hello
I have a project where I want to compile some boost libraries and cpprestsdk from source in the same cmake project. I added boost compilation as a custom target and was able to use it for other custom modules but no luck with cpprestsdk.
The problem is that restsdk uses cmake's FindBoost module to locate and link boost libs. FindBoost locates headers and binaries together, so it only the header files are available then it will fail and the cmake configure step fails. Since I'm building boost libs in the same project as restsdk, the boost lib binaries are not available before FindBoost runs.
Is there a way to tell restsdk that boost will be built later so it will not look for boost during configure step?