Browse Source

Merge branch '242-fix-superbuild-error-reporting'

* 242-fix-superbuild-error-reporting:
  Both CTest and CMake should have CTEST_USE_LAUNCHERS set
Jean-Christophe Fillion-Robin 12 years ago
parent
commit
d54c12beb4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      CMake/ctkDashboardDriverScript.cmake

+ 2 - 1
CMake/ctkDashboardDriverScript.cmake

@@ -97,7 +97,8 @@ endif()
 #message("force_build:${force_build}")
 
 # For more details, see http://www.kitware.com/blog/home/post/11
-set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} 1)
+set(CTEST_USE_LAUNCHERS 1)
+set(ENV{CTEST_USE_LAUNCHERS_DEFAULT} ${CTEST_USE_LAUNCHERS})
 
 if(empty_binary_directory)
   message("Directory ${CTEST_BINARY_DIRECTORY} cleaned !")