Parcourir la source

Enable CTEST_USE_LAUNCHERS only if CMake generator is Makefile based

Jean-Christophe Fillion-Robin il y a 14 ans
Parent
commit
84202e186d
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      CMake/ctkDashboardDriverScript.cmake

+ 5 - 1
CMake/ctkDashboardDriverScript.cmake

@@ -93,7 +93,11 @@ endif()
 #message("empty_binary_directory:${empty_binary_directory}")
 #message("force_build:${force_build}")
 
-set(CTEST_USE_LAUNCHERS 1)
+# For more details, see http://www.kitware.com/blog/home/post/11
+set(CTEST_USE_LAUNCHERS 0)
+if (NOT ${CMAKE_GENERATOR} MATCHES "Visual Studio")
+  set(CTEST_USE_LAUNCHERS 1)
+endif()
 
 if(empty_binary_directory)
   message("Directory ${CTEST_BINARY_DIRECTORY} cleaned !")