mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
Suppress warnings in GTest (Fixes Gcc11 build errors) (#7957)
Co-authored-by: Ankur Verma <ankurv@microsoft.com>
This commit is contained in:
parent
9b5f749176
commit
429df40f1d
1 changed files with 1 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in a new issue