소스 검색

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 14 년 전
부모
커밋
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