[flang-commits] [PATCH] D137080: [flang] Add one missing "llvm_" prefix to gtest_main

Michał Górny via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Oct 31 07:32:02 PDT 2022


mgorny created this revision.
mgorny added a reviewer: stellaraccident.
Herald added a project: All.
mgorny requested review of this revision.

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 <https://reviews.llvm.org/rG38151a08c21e0cdacd52af03e4bdff258f0bac6f>.


https://reviews.llvm.org/D137080

Files:
  flang/CMakeLists.txt


Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ 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()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137080.471999.patch
Type: text/x-patch
Size: 532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221031/2e0eefba/attachment.bin>


More information about the flang-commits mailing list