Minimall supported build without boost.

To remove boost dependency, `-DMSGPACK_USE_BOOST=OFF` for cmake.
By default, `-DMSGPACK_USE_BOOST` is `ON`.
NOTE: In order to build tests `-DMSGPACK_USE_BOOST=ON` is required.

For C++ compiler, the option `-DMSGPACK_NO_BOOST` is required to remove
boost.
This commit is contained in:
Takatoshi Kondo
2022-02-07 21:19:17 +09:00
parent 59f2da6a3b
commit 066d509a68
436 changed files with 47811 additions and 78 deletions

View File

@@ -10,6 +10,13 @@
#include "config.h"
#endif
#if defined(MSGPACK_NO_BOOST)
BOOST_AUTO_TEST_CASE(empty)
{
}
#else // defined(MSGPACK_NO_BOOST)
#include <boost/fusion/adapted/struct/define_struct.hpp>
#include <boost/fusion/adapted/struct/adapt_struct.hpp>
@@ -246,3 +253,5 @@ BOOST_AUTO_TEST_CASE(fusion_pack_unpack_convert_tuple)
}
#endif // !defined(MSGPACK_USE_CPP03)
#endif // defined(MSGPACK_NO_BOOST)