I looked into making it a split package, but since the header-only and compiled versions aren't using the same build I'm not sure it's worth doing. As far as I can tell, it would require anyone using the header-only package to still compile the whole thing, even though they don't need it.
Didn't realize having DESTDIR on the end vs front mattered, but I'll change that.
Pinned Comments
sum01 commented on 2021-04-23 19:40 (UTC)
@Spixmaster so
cpp-httplib
is header-only, and must be compiled in any project you use it in.cpp-httplib-compiled
splits the header into an interface (header) and implementation, allowing you to just link against it. Lets you avoid having to compile it every time.