diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 45889199653..460eeb1ba4e 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -134,13 +134,13 @@ ${name} ignored.") set(libkind SHARED) endif() + add_library( ${name} ${libkind} ${ALL_FILES} ) + set_target_properties( ${name} PROPERTIES PREFIX "" ) + if (LLVM_EXPORTED_SYMBOL_FILE) add_llvm_symbol_exports( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} ) endif(LLVM_EXPORTED_SYMBOL_FILE) - add_library( ${name} ${libkind} ${ALL_FILES} ) - set_target_properties( ${name} PROPERTIES PREFIX "" ) - llvm_config( ${name} ${LLVM_LINK_COMPONENTS} ) link_system_libs( ${name} )