[Mlir-commits] [mlir] 3ceebcb - [mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (#84539)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Mar 8 13:30:38 PST 2024


Author: Peiming Liu
Date: 2024-03-08T13:30:34-08:00
New Revision: 3ceebcb48135612b8d90500f65693398f7e526cd

URL: https://github.com/llvm/llvm-project/commit/3ceebcb48135612b8d90500f65693398f7e526cd
DIFF: https://github.com/llvm/llvm-project/commit/3ceebcb48135612b8d90500f65693398f7e526cd.diff

LOG: [mlir] tentative fix for "'GTEST_NO_LLVM_SUPPORT' is not defined" war… (#84539)

…ning when unittest is enabled

Added: 
    

Modified: 
    mlir/unittests/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/unittests/CMakeLists.txt b/mlir/unittests/CMakeLists.txt
index d0e222091c9f89..6fad249a0b2fba 100644
--- a/mlir/unittests/CMakeLists.txt
+++ b/mlir/unittests/CMakeLists.txt
@@ -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()


        


More information about the Mlir-commits mailing list