Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49008 - trunk/libs/graph/build
From: ghost_at_[hidden]
Date: 2008-09-29 11:38:37


Author: vladimir_prus
Date: 2008-09-29 11:38:37 EDT (Mon, 29 Sep 2008)
New Revision: 49008
URL: http://svn.boost.org/trac/boost/changeset/49008

Log:
Don't emit warnings about GraphML support if not actually building Boost.Graph.

Text files modified:
   trunk/libs/graph/build/Jamfile.v2 | 27 ++++++++++++++++-----------
   1 files changed, 16 insertions(+), 11 deletions(-)

Modified: trunk/libs/graph/build/Jamfile.v2
==============================================================================
--- trunk/libs/graph/build/Jamfile.v2 (original)
+++ trunk/libs/graph/build/Jamfile.v2 2008-09-29 11:38:37 EDT (Mon, 29 Sep 2008)
@@ -23,23 +23,30 @@
     ECHO "Expat library directory: $(EXPAT_LIBPATH)" ;
   }
 
- optional_sources += graphml.cpp ;
- optional_reqs += <include>$(EXPAT_INCLUDE)
- <library-path>$(EXPAT_LIBPATH)
- <find-shared-library>expat
- ;
+ alias graphml
+ : graphml.cpp
+ : # requirements
+ : # default built
+ : # usage requirements
+ <include>$(EXPAT_INCLUDE)
+ <library-path>$(EXPAT_LIBPATH)
+ <find-shared-library>expat
+ ;
 }
 else
 {
- ECHO "warning: Graph library does not contain optional GraphML reader." ;
- ECHO "note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the" ;
- ECHO "note: directories containing the Expat headers and libraries, respectively." ;
+ message graphml
+ : "warning: Graph library does not contain optional GraphML reader."
+ : "note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the"
+ : "note: directories containing the Expat headers and libraries, respectively."
+ ;
 }
+explicit graphml ;
 
 lib boost_graph
     :
     read_graphviz_spirit.cpp
- $(optional_sources)
+ graphml
     :
     <define>BOOST_GRAPH_NO_LIB=1
     <link>shared:<define>BOOST_GRAPH_DYN_LINK=1
@@ -48,8 +55,6 @@
     # Without these flags, MSVC 7.1 and 8.0 crash
     <toolset>msvc-7.1:<cxxflags>-GR-
     <toolset>msvc-8.0:<cxxflags>-GR-
- # Requirements for any "optional" sources
- $(optional_reqs)
     ;
 
 boost-install boost_graph ;
\ No newline at end of file


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk