[CMake] NFC. Updating CMake dependency specifications
authorChris Bieneman <beanz@apple.com>
Thu, 17 Nov 2016 04:36:35 +0000 (04:36 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 17 Nov 2016 04:36:35 +0000 (04:36 +0000)
This patch updates a couple places where add_dependencies was being explicitly called to add dependencies on intrinsics_gen to instead use the DEPENDS named parameter. This cleanup is needed for a patch I'm working on to add a dependency debugging mode to the build system.

llvm-svn: 287205

lld/COFF/CMakeLists.txt
lld/ELF/CMakeLists.txt

index 94081fc..d8fb23f 100644 (file)
@@ -35,6 +35,8 @@ add_lld_library(lldCOFF
   LINK_LIBS
   lldCore
   ${PTHREAD_LIB}
-  )
 
-add_dependencies(lldCOFF COFFOptionsTableGen intrinsics_gen)
+  DEPENDS
+  COFFOptionsTableGen
+  intrinsics_gen
+  )
index 65f4359..84a49e9 100644 (file)
@@ -52,6 +52,8 @@ add_lld_library(lldELF
   lldConfig
   lldCore
   ${PTHREAD_LIB}
-  )
 
-add_dependencies(lldELF intrinsics_gen ELFOptionsTableGen)
+  DEPENDS
+  ELFOptionsTableGen
+  intrinsics_gen
+  )