瀏覽代碼

Fix dependency between CTK-Configure and CTK-build

Because the dependency is between toplevel projects, it should be defined
with ADD_DEPENDENCIES instead of  ADD_CUSTOM_TARGET::DEPENDS which is
solely for file dependencies.
It was working fine for CMake >= 2.8.4 but failed for CMake 2.8.2
Julien Finet 13 年之前
父節點
當前提交
c7ac594f82
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SuperBuild.cmake

+ 1 - 1
SuperBuild.cmake

@@ -271,8 +271,8 @@ ENDIF()
 ADD_CUSTOM_TARGET(CTK-build ${CTKBUILD_TARGET_ALL_OPTION}
   COMMAND ${CMAKE_COMMAND} --build ${CTK_BINARY_DIR}/CTK-build --config ${CMAKE_CFG_INTDIR}
   WORKING_DIRECTORY ${CTK_BINARY_DIR}/CTK-build
-  DEPENDS CTK-Configure
   )
+ADD_DEPENDENCIES(CTK-build CTK-Configure)
 
 #-----------------------------------------------------------------------------
 # Custom target allowing to drive the build of CTK project itself