[Mlir-commits] [mlir] [mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (PR #84539)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Mar 8 11:19:58 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Peiming Liu (PeimingLiu)
<details>
<summary>Changes</summary>
…ning when unittest is enabled
---
Full diff: https://github.com/llvm/llvm-project/pull/84539.diff
1 Files Affected:
- (modified) mlir/CMakeLists.txt (+1)
``````````diff
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)
``````````
</details>
https://github.com/llvm/llvm-project/pull/84539
More information about the Mlir-commits
mailing list