cmake HAVE_BOOST_SHARED_DYNAMIC_CAST examples

Kitware/VTK ThirdParty/xdmf3/vtkxdmf3/core/CMakeLists.txt :64

check_cxx_source_compiles("
#include <boost/shared_ptr.hpp>

struct Base { virtual ~Base(){} };
struct Derived : public Base {};

int main(int ac, char * av[])
{
  boost::shared_ptr<Base> ptr(new Base());
  boost::shared_dynamic_cast<Derived>(ptr);
}
"
HAVE_BOOST_SHARED_DYNAMIC_CAST)