unittests: Squelch -Wsuggest-override errors in LLVM's gtest. (#4409)

These warnings are verbose and we can't fix them, so don't generate warnings about them.
This commit is contained in:
Will Dietz 2022-12-06 08:56:53 -06:00 committed by GitHub
parent ad85fa9869
commit 9cf3fc3af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,10 @@
add_custom_target(CIRCTUnitTests)
set_target_properties(CIRCTUnitTests PROPERTIES FOLDER "CIRCT Tests")
if (CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG)
add_compile_options("-Wno-suggest-override")
endif()
function(add_circt_unittest test_dirname)
add_unittest(CIRCTUnitTests ${test_dirname} ${ARGN})
endfunction()