summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-06-17 15:41:56 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-06-17 15:41:56 +0000
commit1b9d890455336e1bd2828c42bdc9e1f5347dad6f (patch)
tree37f1b158cba246a3aea5d1e3a7f59705f274000e /cmake
parent3b6752eec5c588a10d1109e4f907f024cece4074 (diff)
downloadllvm-1b9d890455336e1bd2828c42bdc9e1f5347dad6f.tar.gz
llvm-1b9d890455336e1bd2828c42bdc9e1f5347dad6f.tar.bz2
llvm-1b9d890455336e1bd2828c42bdc9e1f5347dad6f.tar.xz
TableGen.cmake: Fix to work without LLVM_COMMON_DEPENDS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158650 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/TableGen.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/TableGen.cmake b/cmake/modules/TableGen.cmake
index 1b1b1728d7..e3bdd9c704 100644
--- a/cmake/modules/TableGen.cmake
+++ b/cmake/modules/TableGen.cmake
@@ -50,7 +50,9 @@ function(add_public_tablegen_target target)
if( TABLEGEN_OUTPUT )
add_custom_target(${target}
DEPENDS ${TABLEGEN_OUTPUT})
- add_dependencies(${target} ${LLVM_COMMON_DEPENDS})
+ if (LLVM_COMMON_DEPENDS)
+ add_dependencies(${target} ${LLVM_COMMON_DEPENDS})
+ endif ()
set_target_properties(${target} PROPERTIES FOLDER "Tablegenning")
endif( TABLEGEN_OUTPUT )
endfunction()