[Mlir-commits] [mlir] [mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (PR #84539)
Peiming Liu
llvmlistbot at llvm.org
Fri Mar 8 11:14:53 PST 2024
https://github.com/PeimingLiu created https://github.com/llvm/llvm-project/pull/84539
…ning when unittest is enabled
>From b9e0048de943c76352743c524bb47bf78c30abe9 Mon Sep 17 00:00:00 2001
From: Peiming Liu <peiming at google.com>
Date: Fri, 8 Mar 2024 19:13:24 +0000
Subject: [PATCH] [mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not
defined" warning when unittest is enabled
---
mlir/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index 5c4301af040b47..9bc0ea1169f487 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -197,6 +197,7 @@ add_subdirectory(lib/CAPI)
if (MLIR_INCLUDE_TESTS)
add_definitions(-DMLIR_INCLUDE_TESTS)
+ add_definitions(-DGTEST_NO_LLVM_SUPPORT=0)
add_custom_target(MLIRUnitTests)
if (EXISTS ${LLVM_THIRD_PARTY_DIR}/unittest/googletest/include/gtest/gtest.h)
add_subdirectory(unittests)
More information about the Mlir-commits
mailing list