$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: troy_at_[hidden]
Date: 2007-05-18 11:57:50
Author: troy
Date: 2007-05-18 11:57:50 EDT (Fri, 18 May 2007)
New Revision: 4122
URL: http://svn.boost.org/trac/boost/changeset/4122
Log:
Example of problem for the kitware crew.
Text files modified: 
   sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-core.cmake    |     1 +                                       
   sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-testing.cmake |     5 +++--                                   
   2 files changed, 4 insertions(+), 2 deletions(-)
Modified: sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-core.cmake
==============================================================================
--- sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-core.cmake	(original)
+++ sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-core.cmake	2007-05-18 11:57:50 EDT (Fri, 18 May 2007)
@@ -155,6 +155,7 @@
     string(TOLOWER "${libname_}" libname)
     project(${libname})
 
+    add_custom_target(tests)
     if(NOT EXISTS ${CMAKE_BINARY_DIR}/bin/${PROJECT_NAME})
       file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin/${PROJECT_NAME})
     endif(NOT EXISTS ${CMAKE_BINARY_DIR}/bin/${PROJECT_NAME})
Modified: sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-testing.cmake
==============================================================================
--- sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-testing.cmake	(original)
+++ sandbox/troy/inner-macro-cant-find-outer-target-bug/tools/build/CMake/boost-testing.cmake	2007-05-18 11:57:50 EDT (Fri, 18 May 2007)
@@ -80,7 +80,8 @@
 macro(boost_test_run testname)
   boost_test_parse_args(${testname} ${ARGN})
   if (BOOST_TEST_OKAY)
-    add_executable(${testname} ${BOOST_TEST_SOURCES})
+    add_executable(${testname} EXCLUDE_FROM_ALL ${BOOST_TEST_SOURCES})
+    add_dependencies("tests" "${testname}")
     set_target_properties(${testname}
       PROPERTIES
       OUTPUT_NAME ${PROJECT_NAME}/${testname})
@@ -104,7 +105,7 @@
 macro(boost_test_run_fail testname)
   boost_test_parse_args(${testname} ${ARGN})
   if(BOOST_TEST_OKAY)
-    add_executable(${testname} ${BOOST_TEST_SOURCES})
+    add_executable(${testname} EXCLUDE_FROM_ALL ${BOOST_TEST_SOURCES})
 
     if (BOOST_TEST_DEPENDS)
       target_link_libraries(${testname} ${BOOST_TEST_DEPENDS})