Jamfile.v2 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Copyright (c) 2002 Trustees of Indiana University
  2. #
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # (See accompanying file LICENSE_1_0.txt or copy at
  5. # http://www.boost.org/LICENSE_1_0.txt)
  6. import mpi ;
  7. project boost/graph_parallel
  8. : requirements <include>../src
  9. : source-location ../src
  10. ;
  11. local optional_sources ;
  12. local optional_reqs ;
  13. if [ mpi.configured ]
  14. {
  15. lib boost_graph_parallel
  16. : mpi_process_group.cpp tag_allocator.cpp
  17. : <library>../../mpi/build//boost_mpi
  18. <library>/mpi//mpi [ mpi.extra-requirements ]
  19. <define>BOOST_GRAPH_NO_LIB=1
  20. <link>shared:<define>BOOST_GRAPH_DYN_LINK=1
  21. # # Intel compiler ICEs if we turn optimization on
  22. <toolset>intel-vc71-win-9.1:<optimization>off
  23. # Without these flags, MSVC 7.1 crash
  24. # User reports that VC++ 8 no longer has this problem
  25. <toolset>msvc-7.1:<cxxflags>-GR-
  26. <local-visibility>global
  27. ;
  28. }
  29. else
  30. {
  31. message boost_graph_parallel
  32. : "warning: Graph library does not contain MPI-based parallel components."
  33. : "note: to enable them, add \"using mpi ;\" to your user-config.jam."
  34. : "note: to suppress this message, pass \"--without-graph_parallel\" to bjam."
  35. ;
  36. }
  37. boost-install boost_graph_parallel ;