cpprestsdk icon indicating copy to clipboard operation
cpprestsdk copied to clipboard

Compile boost and cpprestsdk in the same cake project

Open Kollgergo opened this issue 4 years ago • 0 comments

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?

Kollgergo avatar Oct 15 '21 10:10 Kollgergo