Explorar el Código

Fix force build for CTK

Replace the 'build depends on always run step' rule for CTK (which does
not work with at least Ninja) with a rule to remove the stamp for the
build step. This more reliably ensures that the build step for CTK is
always executed.
Matthew Woehlke hace 11 años
padre
commit
512cb772ac
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      SuperBuild.cmake

+ 3 - 3
SuperBuild.cmake

@@ -56,9 +56,9 @@ ExternalProject_Add(${proj}
 # This custom external project step forces the build and later
 # steps to run whenever a top level build is done...
 ExternalProject_Add_Step(${proj} forcebuild
-  COMMAND ${CMAKE_COMMAND} -E echo_append ""
+  COMMAND ${CMAKE_COMMAND} -E remove
+    ${CMAKE_CURRENT_BINARY_DIR}/${proj}-prefix/src/${proj}-stamp/${proj}-build
   COMMENT "Forcing build step for '${proj}'"
-  DEPENDEES configure
-  DEPENDERS build
+  DEPENDEES build
   ALWAYS 1
   )