From 7da079cc12717cb380e75dedffa80f28d7653216 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Tue, 3 May 2016 21:58:07 +0000 Subject: [PATCH] Make check-libcxx dependant on libc++experimental if present. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@268451 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 34a559d1a..ae6fee187 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -44,10 +44,14 @@ configure_file( ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg @ONLY) +if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY) + set(experimental_dep cxx_experimental) +endif() + add_lit_testsuite(check-libcxx "Running libcxx tests" ${CMAKE_CURRENT_BINARY_DIR} - DEPENDS cxx) + DEPENDS cxx ${experimental_dep}) if (LIBCXX_GENERATE_COVERAGE) include(CodeCoverage)