소스 검색

Unconditionally rebuild "CTK-build" inner project. See #32

Since the superbuild project doesn't have any dependency on CTK source
files, adding the "forcerebuild" step will ensure CTK build tree
is always up-to-date.
Jean-Christophe Fillion-Robin 13 년 전
부모
커밋
057bbf5c1f
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      SuperBuild.cmake

+ 7 - 0
SuperBuild.cmake

@@ -279,6 +279,13 @@ IF(NOT DEFINED SUPERBUILD_EXCLUDE_CTKBUILD_TARGET OR NOT SUPERBUILD_EXCLUDE_CTKB
     DEPENDS
       "CTK-Configure"
     )
+  # 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
+    DEPENDEES configure
+    DEPENDERS build
+    ALWAYS 1
+    )
 ENDIF()
 
 #-----------------------------------------------------------------------------