$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: troy_at_[hidden]
Date: 2007-06-07 10:44:14
Author: troy
Date: 2007-06-07 10:44:14 EDT (Thu, 07 Jun 2007)
New Revision: 4482
URL: http://svn.boost.org/trac/boost/changeset/4482
Log:
cleanup that goes along with the SOURCES-removing commit...
 
Text files modified: 
   sandbox-branches/boost-cmake/boost_1_34_0/libs/serialization/test/CMakeLists.txt |    12 +++++++-----                            
   1 files changed, 7 insertions(+), 5 deletions(-)
Modified: sandbox-branches/boost-cmake/boost_1_34_0/libs/serialization/test/CMakeLists.txt
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/libs/serialization/test/CMakeLists.txt	(original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/serialization/test/CMakeLists.txt	2007-06-07 10:44:14 EDT (Thu, 07 Jun 2007)
@@ -13,7 +13,13 @@
 # this macro will build separate static and dynamic tests for each
 # archive type listed in BOOST_ARCHIVE_LIST.
 macro(serialization_test testname)
-  parse_arguments(BSL_TEST "SOURCES" "NO_LIBS;POLYMORPHIC" ${ARGN})
+  parse_arguments(BSL_TEST "" "NO_LIBS;POLYMORPHIC" ${ARGN})
+
+  if(NOT BSL_TEST_DEFAULT_ARGS)
+    set(BSL_TEST_SOURCES "${testname}.cpp")
+  else(NOT BSL_TEST_DEFAULT_ARGS)
+    set(BSL_TEST_SOURCES "${BSL_TEST_DEFAULT_ARGS}")
+  endif(NOT BSL_TEST_DEFAULT_ARGS)
 
   if (BSL_TEST_POLYMORPHIC)
     set(BSL_TEST_POLY "polymorphic_")
@@ -35,10 +41,6 @@
       endif(ARCHIVE MATCHES ".*warchive")
     endif(NOT BSL_NO_LIBS)
 
-    if(NOT BSL_TEST_SOURCES)
-      set(BSL_TEST_SOURCES "${testname}.cpp")
-    endif(NOT BSL_TEST_SOURCES)
-    
     # Tests linking against the static serialization library
     boost_test_run("${testname}_${ARCHIVE}"
       ${BSL_TEST_SOURCES}