From ee8b3c30aa377e7c65492ebd9a4810cb569971f4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 29 Dec 2013 16:15:31 +0000 Subject: [PATCH] [CMake] Fix add_llvm_loadble_module. Thanks to Edward-san, to let me know. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198165 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/AddLLVM.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} ) -- 2.34.1