소스 검색

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
   )