Make check-libcxx dependant on libc++experimental if present.
authorEric Fiselier <eric@efcs.ca>
Tue, 3 May 2016 21:58:07 +0000 (21:58 +0000)
committerEric Fiselier <eric@efcs.ca>
Tue, 3 May 2016 21:58:07 +0000 (21:58 +0000)
llvm-svn: 268451

libcxx/test/CMakeLists.txt

index 34a559d..ae6fee1 100644 (file)
@@ -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)