Make llvm-go test dependency optional.
[oota-llvm.git] / test / CMakeLists.txt
index 14e54b7..bdb5d79 100644 (file)
@@ -32,7 +32,6 @@ set(LLVM_TEST_DEPENDS
           llvm-dis
           llvm-dwarfdump
           llvm-extract
-          llvm-go
           llvm-link
           llvm-lto
           llvm-mc
@@ -65,6 +64,10 @@ if(TARGET LLVMgold)
   set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LLVMgold)
 endif()
 
+if(TARGET llvm-go)
+  set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-go)
+endif()
+
 add_lit_testsuite(check-llvm "Running the LLVM regression tests"
   ${CMAKE_CURRENT_BINARY_DIR}
   PARAMS llvm_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg