Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-26 09:40:32


Author: troy
Date: 2007-05-26 09:40:30 EDT (Sat, 26 May 2007)
New Revision: 4275
URL: http://svn.boost.org/trac/boost/changeset/4275

Log:

Have to copy this datafile over to the binary tree so the tests can
find it when building out-of-source.

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/libs/date_time/test/CMakeLists.txt | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: sandbox-branches/boost-cmake/boost_1_34_0/libs/date_time/test/CMakeLists.txt
==============================================================================
--- sandbox-branches/boost-cmake/boost_1_34_0/libs/date_time/test/CMakeLists.txt (original)
+++ sandbox-branches/boost-cmake/boost_1_34_0/libs/date_time/test/CMakeLists.txt 2007-05-26 09:40:30 EDT (Sat, 26 May 2007)
@@ -121,6 +121,11 @@
 date_time_static_test(local_time testposix_time_zone)
 date_time_static_test(local_time testwcustom_time_zone)
 date_time_static_test(local_time testwposix_time_zone)
+if (NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
+ FILE(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/libs/date_time/data")
+ execute_process(COMMAND cmake -E copy "${CMAKE_SOURCE_DIR}/libs/date_time/data/date_time_zonespec.csv" "${CMAKE_BINARY_DIR}/libs/date_time/data")
+endif (NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
+
 date_time_static_test(local_time testtz_database)
 date_time_static_test(local_time testlocal_time)
 date_time_static_test(local_time testlocal_time_iterator)


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