Boost logo

Boost-Commit :

From: dgregor_at_[hidden]
Date: 2007-06-11 10:41:35


Author: dgregor
Date: 2007-06-11 10:41:34 EDT (Mon, 11 Jun 2007)
New Revision: 4524
URL: http://svn.boost.org/trac/boost/changeset/4524

Log:
Only disable single-threaded shared builds on Visual C++

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/tools/build/CMake/BoostCore.cmake | 14 ++++++++------
   1 files changed, 8 insertions(+), 6 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/tools/build/CMake/BoostCore.cmake
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/tools/build/CMake/BoostCore.cmake (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/tools/build/CMake/BoostCore.cmake 2007-06-11 10:41:34 EDT (Mon, 11 Jun 2007)
@@ -254,12 +254,14 @@
   endif (IS_SHARED AND IS_STATIC_RUNTIME)
   
   # With Visual C++, the dynamic runtime is multi-threaded only
- list_contains(IS_DYNAMIC_RUNTIME DYNAMIC_RUNTIME ${ARGN})
- list_contains(IS_SINGLE_THREADED SINGLE_THREADED ${ARGN})
- if (IS_DYNAMIC_RUNTIME AND IS_SINGLE_THREADED)
- set(THIS_VARIANT_OKAY FALSE)
- endif (IS_DYNAMIC_RUNTIME AND IS_SINGLE_THREADED)
-
+ if (MSVC)
+ list_contains(IS_DYNAMIC_RUNTIME DYNAMIC_RUNTIME ${ARGN})
+ list_contains(IS_SINGLE_THREADED SINGLE_THREADED ${ARGN})
+ if (IS_DYNAMIC_RUNTIME AND IS_SINGLE_THREADED)
+ set(THIS_VARIANT_OKAY FALSE)
+ endif (IS_DYNAMIC_RUNTIME AND IS_SINGLE_THREADED)
+ endif (MSVC)
+
   # Visual C++-specific runtime library flags
   if(MSVC)
     list_contains(IS_STATIC_RUNTIME STATIC_RUNTIME ${ARGN})


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