Fixing CMake developer warning.

LLDUnitTests target doesn't exist unless LLVM_INCLUDE_TESTS is On.

llvm-svn: 232058
This commit is contained in:
Chris Bieneman 2015-03-12 16:49:52 +00:00
parent a29622a8c5
commit d24e65895d
1 changed files with 4 additions and 1 deletions

View File

@ -23,8 +23,11 @@ set(LLD_TEST_DEPS
FileCheck not llvm-nm
lld llvm-config llvm-objdump llvm-readobj yaml2obj obj2yaml
linker-script-test macho-dump llvm-mc llvm-nm
LLDUnitTests
)
if (LLVM_INCLUDE_TESTS)
set(LLD_TEST_DEPS ${LLD_TEST_DEPS} LLDUnitTests)
endif()
set(LLD_TEST_PARAMS
lld_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
)