async_comm
async_comm copied to clipboard
Portability
CMake touch ups for portability with MSVC (gross, I know).
BOOST_ALL_NO_LIBfixes weird dynamic vs static linking issues (see this and this)- By omitting
SHAREDinadd_library, the user gains control via theBUILD_SHARED_LIBSoption. - since
<boost/asio.hpp>and<boost/function.hpp>are included in the public interface, boost includes need to be public, not private (could use PIMPL or maybe forward decl + pointers, but refactor didn't seem worth it)
I wanted the static lib option because building DLLs is a pain. tl;dr GCC exports all symbols by default, MSVC does not. Thought about adding the infrastructure to handle this, but didn't seem worth it.