llvm.org GIT mirror llvm / 13764f7
[CMake] LINK_COMPONENTS: Add also corresponding MCTargetDesc and TargetInfo as well, when target names or "nativecodegen" are specified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212921 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 5 years ago
1 changed file(s) with 9 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
104104 if( TARGET LLVM${c}AsmParser )
105105 list(APPEND expanded_components "LLVM${c}AsmParser")
106106 endif()
107 if( TARGET LLVM${c}Desc )
108 list(APPEND expanded_components "LLVM${c}Desc")
109 endif()
107110 if( TARGET LLVM${c}Info )
108111 list(APPEND expanded_components "LLVM${c}Info")
109112 endif()
114117 # already processed
115118 elseif( c STREQUAL "nativecodegen" )
116119 list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}CodeGen")
120 if( TARGET LLVM${LLVM_NATIVE_ARCH}Desc )
121 list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}Desc")
122 endif()
123 if( TARGET LLVM${LLVM_NATIVE_ARCH}Info )
124 list(APPEND expanded_components "LLVM${LLVM_NATIVE_ARCH}Info")
125 endif()
117126 elseif( c STREQUAL "backend" )
118127 # same case as in `native'.
119128 elseif( c STREQUAL "engine" )