Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2008-05-26 10:57:55


Author: troy
Date: 2008-05-26 10:57:54 EDT (Mon, 26 May 2008)
New Revision: 45771
URL: http://svn.boost.org/trac/boost/changeset/45771

Log:

Bring back handy option BUILD_VERSIONED. This somehow disappeared
along the way.

Text files modified:
   branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake | 28 +++++++++++++++++++---------
   1 files changed, 19 insertions(+), 9 deletions(-)

Modified: branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake
==============================================================================
--- branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake (original)
+++ branches/CMake/Boost_1_35_0/tools/build/CMake/BoostCore.cmake 2008-05-26 10:57:54 EDT (Mon, 26 May 2008)
@@ -235,12 +235,20 @@
 # particular version of the library and the toolset used to build
 # this library. For example, this might be "-gcc41-mt-1_34" for the
 # multi-threaded, release variant of the library in Boost 1.34.0 as
-# compiled with GCC 4.1.
+# compiled with GCC 4.1. If global option BUILD_VERSIONED is off,
+# this variable is set to the empty string.
+#
+option(BUILD_VERSIONED "Add versioning information to names of built files" ON)
+
 macro(boost_library_variant_target_name)
   set(VARIANT_TARGET_NAME "")
 
   # The versioned name starts with the full Boost toolset
- set(VARIANT_VERSIONED_NAME "-${BOOST_TOOLSET}")
+ if(BUILD_VERSIONED)
+ set(VARIANT_VERSIONED_NAME "-${BOOST_TOOLSET}")
+ else(BUILD_VERSIONED)
+ set(VARIANT_VERSIONED_NAME "")
+ endif(BUILD_VERSIONED)
 
   # Add -mt for multi-threaded libraries
   list_contains(VARIANT_IS_MT MULTI_THREADED ${ARGN})
@@ -304,13 +312,15 @@
   endif (VARIANT_ABI_TAG)
 
   # Append the Boost version number to the versioned name
- if(BOOST_VERSION_SUBMINOR GREATER 0)
- set(VARIANT_VERSIONED_NAME
- "${VARIANT_VERSIONED_NAME}-${BOOST_VERSION_MAJOR}_${BOOST_VERSION_MINOR}_${BOOST_VERSION_SUBMINOR}")
- else(BOOST_VERSION_SUBMINOR GREATER 0)
- set(VARIANT_VERSIONED_NAME
- "${VARIANT_VERSIONED_NAME}-${BOOST_VERSION_MAJOR}_${BOOST_VERSION_MINOR}")
- endif(BOOST_VERSION_SUBMINOR GREATER 0)
+ if(BUILD_VERSIONED)
+ if(BOOST_VERSION_SUBMINOR GREATER 0)
+ set(VARIANT_VERSIONED_NAME
+ "${VARIANT_VERSIONED_NAME}-${BOOST_VERSION_MAJOR}_${BOOST_VERSION_MINOR}_${BOOST_VERSION_SUBMINOR}")
+ else(BOOST_VERSION_SUBMINOR GREATER 0)
+ set(VARIANT_VERSIONED_NAME
+ "${VARIANT_VERSIONED_NAME}-${BOOST_VERSION_MAJOR}_${BOOST_VERSION_MINOR}")
+ endif(BOOST_VERSION_SUBMINOR GREATER 0)
+ endif(BUILD_VERSIONED)
 endmacro(boost_library_variant_target_name)
 
 # This macro is an internal utility macro that updates compilation and


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