diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -303,6 +303,10 @@ endif() endif() + if(LLVM_INCLUDE_TESTS) + list(APPEND deps gtest_main gtest) + endif() + # We create a list the names of all the runtime projects in all uppercase and # with dashes turned to underscores. This gives us the CMake variable prefixes # for all variables that will apply to runtimes.