File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,9 @@ link_directories(
176176)
177177
178178if (LLVM_LINK_LLVM_DYLIB)
179- set (LLVM_COMPONENTS LLVM)
179+ set (LLVM_LIBS LLVM)
180180else (LLVM_LINK_LLVM_DYLIB)
181- set (LLVM_COMPONENTS
181+ set (LLVM_LIBS
182182 Analysis
183183 AsmParser
184184 AsmPrinter
@@ -221,7 +221,7 @@ elseif(NOT LLVM_LINK_LLVM_DYLIB)
221221 # SPIRV-LLVM-Translator is included into LLVM as a component, but
222222 # LLVM components is not linked together into an umbrella library.
223223 # So, we need to list SPIRV-LLVM-Translator there explicitly as a component
224- set (LLVM_COMPONENTS ${LLVM_LIBS} SPIRVLib)
224+ set (LLVM_LIBS ${LLVM_LIBS} SPIRVLib)
225225endif (USE_PREBUILT_LLVM AND NOT LLVMSPIRV_INCLUDED_IN_LLVM)
226226
227227add_subdirectory (cl_headers)
@@ -235,7 +235,7 @@ add_llvm_library(${TARGET_NAME} SHARED
235235
236236 DEPENDS CClangCompileOptions
237237 LINK_COMPONENTS
238- ${LLVM_COMPONENTS }
238+ ${LLVM_LIBS }
239239 LINK_LIBS
240240# The list of clang libraries is taken from clang makefile
241241# (build/tools/clang/tools/driver/CMakeFiles/clang.dir/link.txt)
You can’t perform that action at this time.
0 commit comments