Преглед изворни кода

Enable CTEST_USE_LAUNCHERS only if CMake generator is Makefile based

Jean-Christophe Fillion-Robin пре 14 година
родитељ
комит
84202e186d
1 измењених фајлова са 5 додато и 1 уклоњено
  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 !")