浏览代码

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
   )