diff --git a/compiler-rt/test/msan/CMakeLists.txt b/compiler-rt/test/msan/CMakeLists.txt index 00638b300408..ba4154676ae0 100644 --- a/compiler-rt/test/msan/CMakeLists.txt +++ b/compiler-rt/test/msan/CMakeLists.txt @@ -41,7 +41,7 @@ if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_LIBCXX_SOURCES) endif() add_lit_testsuite(check-msan "Running the MemorySanitizer tests" - ${MSAN_TESTSUITES} ${CMAKE_CURRENT_BINARY_DIR}/Unit + ${MSAN_TESTSUITES} DEPENDS ${MSAN_TEST_DEPS} ) set_target_properties(check-msan PROPERTIES FOLDER "MSan tests") diff --git a/compiler-rt/test/tsan/CMakeLists.txt b/compiler-rt/test/tsan/CMakeLists.txt index 39f8be09a1b3..f45a6fc59121 100644 --- a/compiler-rt/test/tsan/CMakeLists.txt +++ b/compiler-rt/test/tsan/CMakeLists.txt @@ -50,6 +50,6 @@ if(COMPILER_RT_INCLUDE_TESTS) endif() add_lit_testsuite(check-tsan "Running ThreadSanitizer tests" - ${TSAN_TESTSUITES} ${CMAKE_CURRENT_BINARY_DIR}/Unit + ${TSAN_TESTSUITES} DEPENDS ${TSAN_TEST_DEPS}) set_target_properties(check-tsan PROPERTIES FOLDER "TSan tests")