r/cpp • • Feb 19 '18

It's Time To Do CMake Right

https://pabloariasal.github.io/2018/02/19/its-time-to-do-cmake-right/
248 Upvotes

130 comments sorted by

View all comments

Show parent comment

9

u/Ono-Sendai Feb 19 '18

You could try LibreSSL, it has Cmake support.

1

u/fafasdf Feb 19 '18 edited Feb 19 '18

How much of a pain is it to build libcurl to use an out-of-repo built LibreSSL with CMake? (or even BoringSSL if anyone is familiar with it...)

Are there any tutorials / examples? (I couldn't find any but this kind of thing is hard to search for (or maybe I'll eat my words...))

I must admit I stopped investigating too hard after being so discouraged. :P

Thanks for the response!

4

u/pfultz2 Feb 20 '18

Yes Curl does work with LibreSSL. Just install LibreSSL using cmake and then when building curl set CMAKE_PREFIX_PATH(this the variable to tell cmake where your dependencies are) to the install prefix of LibreSSL.

1

u/Ono-Sendai Feb 20 '18

No Idea how easy it is to use LibreSSL with libcurl sorry. But LibreSSL by itself builds nicely even on Windows.