Suppress warnings in GTest (Fixes Gcc11 build errors) (#7957)

Co-authored-by: Ankur Verma <ankurv@microsoft.com>
This commit is contained in:
Ankur Verma 2021-06-07 10:07:36 -07:00 committed by GitHub
parent 9b5f749176
commit 429df40f1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -608,6 +608,7 @@ if (onnxruntime_BUILD_UNIT_TESTS)
set_target_properties(gmock PROPERTIES FOLDER "External/GTest")
# disable treating all warnings as errors for gmock
target_compile_options(gmock PRIVATE "-w")
target_compile_options(gtest PRIVATE "-w")
set_target_properties(gmock_main PROPERTIES FOLDER "External/GTest")
set_target_properties(gtest PROPERTIES FOLDER "External/GTest")
set_target_properties(gtest_main PROPERTIES FOLDER "External/GTest")