Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2008-07-18 12:34:04


Author: dgregor
Date: 2008-07-18 12:34:04 EDT (Fri, 18 Jul 2008)
New Revision: 47572
URL: http://svn.boost.org/trac/boost/changeset/47572

Log:
Date-time dependencies, fix to the dynamic_bitset HEADERS list, and write out the inter-library dependencies in GraphViz format
Added:
   branches/CMake/release/libs/date_time/module.cmake (contents, props changed)
Text files modified:
   branches/CMake/release/libs/CMakeLists.txt | 15 ++++++++++++++-
   branches/CMake/release/libs/config/test/CMakeLists.txt | 1 -
   branches/CMake/release/libs/dynamic_bitset/CMakeLists.txt | 2 +-
   3 files changed, 15 insertions(+), 3 deletions(-)

Modified: branches/CMake/release/libs/CMakeLists.txt
==============================================================================
--- branches/CMake/release/libs/CMakeLists.txt (original)
+++ branches/CMake/release/libs/CMakeLists.txt 2008-07-18 12:34:04 EDT (Fri, 18 Jul 2008)
@@ -22,7 +22,6 @@
 # Find all of the subdirectories with .cmake files in them. These are
 # the libraries with dependencies.
 boost_collect_subproject_directory_names(BOOST_MODULE_DIRS "module.cmake")
-
 foreach(subdir ${BOOST_MODULE_DIRS})
   include("${CMAKE_CURRENT_SOURCE_DIR}/${subdir}/module.cmake")
 endforeach(subdir)
@@ -37,3 +36,17 @@
 list(SORT BOOST_SUBPROJECT_DIRS)
 topological_sort(BOOST_SUBPROJECT_DIRS BOOST_ _DEPENDS)
 add_subdirectories(" + " ${BOOST_SUBPROJECT_DIRS})
+
+# Write out a GraphViz file containing inter-library dependencies.
+set(BOOST_DEPENDENCY_GRAPHVIZ_FILE "${Boost_BINARY_DIR}/dependencies.dot")
+file(WRITE ${BOOST_DEPENDENCY_GRAPHVIZ_FILE} "digraph boost {\n")
+foreach(SUBDIR ${BOOST_SUBPROJECT_DIRS})
+ string(TOUPPER "BOOST_${SUBDIR}_DEPENDS" DEPENDS_VAR)
+ if(DEFINED ${DEPENDS_VAR})
+ foreach(DEP ${${DEPENDS_VAR}})
+ file(APPEND ${BOOST_DEPENDENCY_GRAPHVIZ_FILE}
+ " \"${SUBDIR}\" -> \"${DEP}\";\n")
+ endforeach()
+ endif()
+endforeach()
+file(APPEND ${BOOST_DEPENDENCY_GRAPHVIZ_FILE} "}\n")

Modified: branches/CMake/release/libs/config/test/CMakeLists.txt
==============================================================================
--- branches/CMake/release/libs/config/test/CMakeLists.txt (original)
+++ branches/CMake/release/libs/config/test/CMakeLists.txt 2008-07-18 12:34:04 EDT (Fri, 18 Jul 2008)
@@ -11,7 +11,6 @@
 
 if(CMAKE_SYSTEM_NAME MATCHES "Linux")
   set(BOOST_CONFIG_STATIC_THREAD_LIBS LINK_LIBS pthread rt)
- message(STATUS "Extra libraries on Linux = ${BOOST_CONFIG_STATIC_THREAD_LIBS}")
 endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
 
 boost_test_run(config_test_threaded config_test.cpp

Added: branches/CMake/release/libs/date_time/module.cmake
==============================================================================
--- (empty file)
+++ branches/CMake/release/libs/date_time/module.cmake 2008-07-18 12:34:04 EDT (Fri, 18 Jul 2008)
@@ -0,0 +1 @@
+boost_module(date_time DEPENDS algorithm)
\ No newline at end of file

Modified: branches/CMake/release/libs/dynamic_bitset/CMakeLists.txt
==============================================================================
--- branches/CMake/release/libs/dynamic_bitset/CMakeLists.txt (original)
+++ branches/CMake/release/libs/dynamic_bitset/CMakeLists.txt 2008-07-18 12:34:04 EDT (Fri, 18 Jul 2008)
@@ -1,7 +1,7 @@
 boost_library_project(
   Dynamic_bitset
   TESTDIRS test
- HEADERS dynamic_bitset.hpp dynamic_bitset_fwd.hpp dynamic_property_map.hpp dynamic_bitset
+ HEADERS dynamic_bitset.hpp dynamic_bitset_fwd.hpp dynamic_bitset
   MODULARIZED
   DESCRIPTION "A runtime-sized version of std::bitset"
   AUTHORS "Jeremy Siek <jeremy.siek -at- gmail.com>"


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