瀏覽代碼

DashboardDriverScript - Build result of targets test and doc are submitted

Jean-Christophe Fillion-Robin 14 年之前
父節點
當前提交
1761a57306
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      CMake/ctkDashboardDriverScript.cmake

+ 3 - 1
CMake/ctkDashboardDriverScript.cmake

@@ -181,21 +181,23 @@ ${ADDITIONNAL_CMAKECACHE_OPTION}
      # Build target
      set(CTEST_BUILD_TARGET "${subproject}")
      ctest_build(BUILD "${ctk_build_dir}" APPEND)
+     ctest_submit(PARTS Build)
      
      # Loop over kit suffixes and try to build the corresponding target
      foreach(kit_suffixe ${kit_suffixes})
        message("----------- [ Build ${subproject}${kit_suffixe} ] -----------")
        set(CTEST_BUILD_TARGET "${subproject}${kit_suffixe}")
        ctest_build(BUILD "${ctk_build_dir}" APPEND)
+       ctest_submit(PARTS Build)
      endforeach()
      
-     ctest_submit(PARTS Build)
     endforeach()
     
     if (WITH_DOCUMENTATION)
       # Build Documentation target
       set(CTEST_BUILD_TARGET "doc")
       ctest_build(BUILD "${ctk_build_dir}" APPEND)
+      ctest_submit(PARTS Build)
     endif()
     
     # HACK Unfortunately ctest_coverage ignores the build argument, try to force it...