summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-06-23 17:57:35 +0000
committerDouglas Gregor <dgregor@apple.com>2009-06-23 17:57:35 +0000
commit7e9e36a23e07dfb0d7ceda3e76450073c0534f35 (patch)
treeab89cfc44d7d6580e19a2d33465f6e167b75a382 /cmake/modules/AddLLVM.cmake
parent83a2129332250af4648e0501f93cabfa8873e1f4 (diff)
downloadllvm-7e9e36a23e07dfb0d7ceda3e76450073c0534f35.tar.gz
llvm-7e9e36a23e07dfb0d7ceda3e76450073c0534f35.tar.bz2
llvm-7e9e36a23e07dfb0d7ceda3e76450073c0534f35.tar.xz
Eliminate object-relinking support from CMake. Fixes PR 4429 and
cleans up the CMake-based build system a bit. Started by a patch from Xerxes RĂ„nby. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index e5256746bc..2b9b649da2 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -61,8 +61,10 @@ macro(add_llvm_target target_name)
add_dependencies(${target_name}Table_gen ${LLVM_COMMON_DEPENDS})
endif( TABLEGEN_OUTPUT )
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR})
- add_partially_linked_object(LLVM${target_name} ${ARGN})
+ add_llvm_library(LLVM${target_name} ${ARGN} ${TABLEGEN_OUTPUT})
+ if (FALSE)
if( TABLEGEN_OUTPUT )
add_dependencies(LLVM${target_name} ${target_name}Table_gen)
endif( TABLEGEN_OUTPUT )
+ endif ()
endmacro(add_llvm_target)