diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt --- a/flang/CMakeLists.txt +++ b/flang/CMakeLists.txt @@ -170,7 +170,7 @@ find_package(Threads) target_link_libraries(llvm_gtest PUBLIC Threads::Threads) add_library(llvm_gtest_main ${UNITTEST_DIR}/UnitTestMain/TestMain.cpp) - target_link_libraries(gtest_main PUBLIC llvm_gtest) + target_link_libraries(llvm_gtest_main PUBLIC llvm_gtest) endif() set(FLANG_GTEST_AVAIL 1) else()