[flang-commits] [PATCH] D138562: [flang] Fix unittests in standalone build for third-party move

Michał Górny via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Nov 23 06:13:28 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG58d1988b19a7: [flang] Fix unittests in standalone build for third-party move (authored by mgorny).
Herald added a project: Flang.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138562/new/

https://reviews.llvm.org/D138562

Files:
  flang/CMakeLists.txt


Index: flang/CMakeLists.txt
===================================================================
--- flang/CMakeLists.txt
+++ flang/CMakeLists.txt
@@ -148,10 +148,9 @@
   get_errc_messages(LLVM_LIT_ERRC_MESSAGES)
 
 #Handle unittests when out-of-tree
-#LLVM_BUILD_MAIN_SRC_DIR - Path to llvm source when out-of-tree.
   set(FLANG_GTEST_AVAIL 0)
   if (FLANG_INCLUDE_TESTS)
-    set(UNITTEST_DIR ${LLVM_BUILD_MAIN_SRC_DIR}/utils/unittest)
+    set(UNITTEST_DIR ${LLVM_THIRD_PARTY_DIR}/unittest)
     if(EXISTS ${UNITTEST_DIR}/googletest/include/gtest/gtest.h)
       if (NOT TARGET llvm_gtest)
         add_library(llvm_gtest


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138562.477484.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221123/064f5105/attachment-0001.bin>


More information about the flang-commits mailing list