[vtk-developers] Submitting VTK builds to private dashboard

Brad King brad.king at kitware.com
Wed Sep 18 14:23:18 EDT 2013


On 09/18/2013 02:11 PM, Brad King wrote:
> On 09/18/2013 12:40 PM, Sean McBride wrote:
>> Works great for CMake and GDCM.  For VTK it half works.
> 
> vtk_common.cmake uses multiple separate ctest_submit calls,
> and the hook you're using is after some of them but before
> others.

>From a quick look at CTest source code, CTestConfig.cmake
is loaded from the source tree by ctest_start, so you need
a hook between that and the first ctest_submit.  Try hacking
one into your local vtk_common as shown below, and then use
that hook.  If it works, I can add the hook upstream.

-Brad


diff --git a/vtk_common.cmake b/vtk_common.cmake
index 20aa9b8..9cb69ed 100644
--- a/vtk_common.cmake
+++ b/vtk_common.cmake
@@ -362,6 +362,9 @@ while(NOT dashboard_done)
     dashboard_hook_start()
   endif()
   ctest_start(${dashboard_model})
+  if(COMMAND dashboard_hook_started)
+    dashboard_hook_started()
+  endif()

   # Always build if the tree is fresh.
   set(dashboard_fresh 0)



More information about the vtk-developers mailing list