Преглед на файлове

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 преди 11 години
родител
ревизия
512cb772ac
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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
   )