소스 검색

Merge branch 'force-ctk-inner-project-rebuild'. Fixes #32

* force-ctk-inner-project-rebuild:
  ExternalProject_Add_Step requires COMMAND parameter with VisualStudioi. See #32
  Unconditionally rebuild "CTK-build" inner project. See #32
Jean-Christophe Fillion-Robin 13 년 전
부모
커밋
1be215aef3
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      SuperBuild.cmake

+ 9 - 0
SuperBuild.cmake

@@ -279,6 +279,15 @@ 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
+    COMMAND ${CMAKE_COMMAND} -E echo_append ""
+    COMMENT "Forcing build step for '${proj}'"
+    DEPENDEES configure
+    DEPENDERS build
+    ALWAYS 1
+    )
 ENDIF()
 
 #-----------------------------------------------------------------------------