Skip to content

Commit 3ceebcb

Browse files
author
Peiming Liu
authored
[mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (#84539)
…ning when unittest is enabled
1 parent 03c6c73 commit 3ceebcb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mlir/unittests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
set_target_properties(MLIRUnitTests PROPERTIES FOLDER "MLIR Tests")
22

3+
# To silence warning caused by Wundef.
4+
add_definitions(-DGTEST_NO_LLVM_SUPPORT=0)
5+
36
function(add_mlir_unittest test_dirname)
47
add_unittest(MLIRUnitTests ${test_dirname} ${ARGN})
58
endfunction()

0 commit comments

Comments
 (0)