diff --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt index 68f5066fa8c5..1d123ed8cfb7 100644 --- a/compiler-rt/test/CMakeLists.txt +++ b/compiler-rt/test/CMakeLists.txt @@ -29,7 +29,7 @@ if(NOT ANDROID) endif() # Tests use C++ standard library headers. if (TARGET cxx-headers OR HAVE_LIBCXX) - set(SANITIZER_COMMON_LIT_TEST_DEPS cxx-headers) + list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS cxx-headers) endif() endif()