Boost logo

Boost-Commit :

From: troy_at_[hidden]
Date: 2007-05-27 06:35:14


Author: troy
Date: 2007-05-27 06:35:14 EDT (Sun, 27 May 2007)
New Revision: 4305
URL: http://svn.boost.org/trac/boost/changeset/4305

Log:

Copy file into CMAKE_BINARY_DIR so the test can find it.

Text files modified:
   sandbox-branches/boost-cmake/boost_1_34_0/libs/date_time/test/CMakeLists.txt | 4 ++++
   1 files changed, 4 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-27 06:35:14 EDT (Sun, 27 May 2007)
@@ -121,9 +121,13 @@
 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)
+
+# we have to copy these into the binary dir because to make the
+# paths inside the tests match
 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")
+ execute_process(COMMAND cmake -E copy "${CMAKE_SOURCE_DIR}/libs/date_time/test/local_time/poorly_formed_zonespec.csv" "${CMAKE_BINARY_DIR}/libs/date_time/test/local_time")
 endif (NOT ${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
 
 date_time_static_test(local_time testtz_database)


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