diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake index fdb47511dcca..36404811d7d3 100644 --- a/llvm/cmake/modules/TableGen.cmake +++ b/llvm/cmake/modules/TableGen.cmake @@ -65,7 +65,7 @@ macro(add_public_tablegen_target target) add_dependencies(${target} ${LLVM_COMMON_DEPENDS}) endif () set_target_properties(${target} PROPERTIES FOLDER "Tablegenning") - list(APPEND LLVM_COMMON_DEPENDS ${target} intrinsics_gen) + list(APPEND LLVM_COMMON_DEPENDS ${target}) endif( TABLEGEN_OUTPUT ) endmacro() diff --git a/llvm/lib/Target/CMakeLists.txt b/llvm/lib/Target/CMakeLists.txt index c2f704f13344..06a74d720810 100644 --- a/llvm/lib/Target/CMakeLists.txt +++ b/llvm/lib/Target/CMakeLists.txt @@ -9,6 +9,8 @@ add_llvm_library(LLVMTarget TargetSubtargetInfo.cpp ) +list(APPEND LLVM_COMMON_DEPENDS intrinsics_gen) + foreach(t ${LLVM_TARGETS_TO_BUILD}) message(STATUS "Targeting ${t}") add_subdirectory(${t})