cmake: Check -Wno-* compiler options for leveldb target
Check for -Wfoo rather than -Wno-foo because the latter may not cause the test to fail.
This commit is contained in:
1 file changed
+5
-3
+5
-3
@@ -88,9 +88,11 @@ if(MSVC)
|
|||||||
_CRT_NONSTDC_NO_WARNINGS
|
_CRT_NONSTDC_NO_WARNINGS
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
target_compile_options(nowarn_leveldb_interface INTERFACE
|
try_append_cxx_flags("-Wconditional-uninitialized" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||||
-Wno-conditional-uninitialized
|
IF_CHECK_PASSED "-Wno-conditional-uninitialized"
|
||||||
-Wno-suggest-override
|
)
|
||||||
|
try_append_cxx_flags("-Wsuggest-override" TARGET nowarn_leveldb_interface SKIP_LINK
|
||||||
|
IF_CHECK_PASSED "-Wno-suggest-override"
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user