Parcourir la source

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
Eric Fiselier il y a 9 ans
Parent
commit
7da079cc12
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      test/CMakeLists.txt

+ 5 - 1
test/CMakeLists.txt

@@ -44,10 +44,14 @@ configure_file(
   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
   @ONLY)
   @ONLY)
 
 
+if (LIBCXX_ENABLE_EXPERIMENTAL_LIBRARY)
+  set(experimental_dep cxx_experimental)
+endif()
+
 add_lit_testsuite(check-libcxx
 add_lit_testsuite(check-libcxx
   "Running libcxx tests"
   "Running libcxx tests"
   ${CMAKE_CURRENT_BINARY_DIR}
   ${CMAKE_CURRENT_BINARY_DIR}
-  DEPENDS cxx)
+  DEPENDS cxx ${experimental_dep})
 
 
 if (LIBCXX_GENERATE_COVERAGE)
 if (LIBCXX_GENERATE_COVERAGE)
   include(CodeCoverage)
   include(CodeCoverage)