Use explicit add_subdirectory's for LLVM target sublibraries instead
of testing for its presence at cmake time.
This way the build automatically regenerates the makefiles when a svn
update brings in a new sublibrary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126068 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 9d275a0..dfe67cd 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -121,5 +121,5 @@
if ( TABLEGEN_OUTPUT )
add_dependencies(LLVM${target_name} ${target_name}Table_gen)
endif (TABLEGEN_OUTPUT)
- set(CURRENT_LLVM_TARGET LLVM${target_name} PARENT_SCOPE)
+ set( CURRENT_LLVM_TARGET LLVM${target_name} )
endmacro(add_llvm_target)