[CMake] Push the dependency on AddLLVM into the test and unites layers
authorChris Bieneman <beanz@apple.com>
Wed, 17 Feb 2016 16:38:54 +0000 (16:38 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 17 Feb 2016 16:38:54 +0000 (16:38 +0000)
Compiler-rt only relies on LLVM for lit support. Pushing this dependency down into the test and unitest layers will allow builtin libraries to be built without LLVM.

llvm-svn: 261105

compiler-rt/cmake/Modules/AddCompilerRT.cmake
compiler-rt/test/CMakeLists.txt
compiler-rt/unittests/CMakeLists.txt

index fe2ff49..f986ec1 100644 (file)
@@ -1,3 +1,6 @@
+# Needed for lit support
+include(AddLLVM)
+
 configure_lit_site_cfg(
   ${CMAKE_CURRENT_SOURCE_DIR}/lit.common.configured.in
   ${CMAKE_CURRENT_BINARY_DIR}/lit.common.configured)
index fe2c397..e5059bd 100644 (file)
@@ -1,3 +1,6 @@
+# Needed for lit support
+include(AddLLVM)
+
 configure_lit_site_cfg(
   ${CMAKE_CURRENT_SOURCE_DIR}/lit.common.unit.configured.in
   ${CMAKE_CURRENT_BINARY_DIR}/lit.common.unit.configured)