[flang-commits] [flang] 45dead4 - [flang] Add one missing "llvm_" prefix to gtest_main

Michał Górny via flang-commits flang-commits at lists.llvm.org
Sat Nov 5 11:49:06 PDT 2022


Author: Michał Górny
Date: 2022-11-05T19:48:51+01:00
New Revision: 45dead4b8fe8d6981a5613b0204841da191a2e03

URL: https://github.com/llvm/llvm-project/commit/45dead4b8fe8d6981a5613b0204841da191a2e03
DIFF: https://github.com/llvm/llvm-project/commit/45dead4b8fe8d6981a5613b0204841da191a2e03.diff

LOG: [flang] Add one missing "llvm_" prefix to gtest_main

The `target_link_libraries()` call operates on `gtest_main` rather than
`llvm_gtest_main`.  I think it was missed while prefixing all the tools
in 38151a08c21e0cdacd52af03e4bdff258f0bac6f.

Differential Revision: https://reviews.llvm.org/D137080

Added: 
    

Modified: 
    flang/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index ca9124c05f4fe..943c34c1ad4fe 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -170,7 +170,7 @@ if (FLANG_STANDALONE_BUILD)
          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()


        


More information about the flang-commits mailing list