From aeb30257c52623b39c20f4a71af738af47bde81a Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 17 Nov 2016 04:36:35 +0000 Subject: [PATCH] [CMake] NFC. Updating CMake dependency specifications 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 | 6 ++++-- lld/ELF/CMakeLists.txt | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lld/COFF/CMakeLists.txt b/lld/COFF/CMakeLists.txt index 94081fc..d8fb23f 100644 --- a/lld/COFF/CMakeLists.txt +++ b/lld/COFF/CMakeLists.txt @@ -35,6 +35,8 @@ add_lld_library(lldCOFF LINK_LIBS lldCore ${PTHREAD_LIB} - ) -add_dependencies(lldCOFF COFFOptionsTableGen intrinsics_gen) + DEPENDS + COFFOptionsTableGen + intrinsics_gen + ) diff --git a/lld/ELF/CMakeLists.txt b/lld/ELF/CMakeLists.txt index 65f4359b..84a49e9 100644 --- a/lld/ELF/CMakeLists.txt +++ b/lld/ELF/CMakeLists.txt @@ -52,6 +52,8 @@ add_lld_library(lldELF lldConfig lldCore ${PTHREAD_LIB} - ) -add_dependencies(lldELF intrinsics_gen ELFOptionsTableGen) + DEPENDS + ELFOptionsTableGen + intrinsics_gen + ) -- 2.7.4