Skip to content

Commit

Permalink
[mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (
Browse files Browse the repository at this point in the history
llvm#84539)

…ning when unittest is enabled
  • Loading branch information
Peiming Liu authored Mar 8, 2024
1 parent 03c6c73 commit 3ceebcb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mlir/unittests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
set_target_properties(MLIRUnitTests PROPERTIES FOLDER "MLIR Tests")

# To silence warning caused by Wundef.
add_definitions(-DGTEST_NO_LLVM_SUPPORT=0)

function(add_mlir_unittest test_dirname)
add_unittest(MLIRUnitTests ${test_dirname} ${ARGN})
endfunction()
Expand Down

0 comments on commit 3ceebcb

Please sign in to comment.