Commit a2efe030 by Sebastian Eichelbaum

[FIX] ... not a fix. This circumvents the boos::program_options linker issue…

[FIX] ... not a fix. This circumvents the boos::program_options linker issue when specifying the OW_BOOST_PROGRAM_OPTIONS_FIX flag. Use CMake to inject the flag:  cmake -DOW_CXX_FLAGS_INJECT="-DOW_BOOST_PROGRAM_OPTIONS_FIX".
parent b294e88e
......@@ -27,6 +27,11 @@
#include <string>
#include <vector>
#ifdef OW_BOOST_PROGRAM_OPTIONS_FIX
// This circumvents an issue with boost program_options. The linker complains about missing "arg".
namespace boost { namespace program_options { std::string arg; } }
#endif // OW_BOOST_PROGRAM_OPTIONS_FIX
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
......
......@@ -27,6 +27,10 @@
#include <string>
#include <vector>
#ifdef OW_BOOST_PROGRAM_OPTIONS_FIX
// This circumvents an issue with boost program_options. The linker complains about missing "arg".
namespace boost { namespace program_options { std::string arg; } }
#endif // OW_BOOST_PROGRAM_OPTIONS_FIX
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment