mirror of
https://github.com/microsoft/GSL.git
synced 2025-02-17 23:33:49 -05:00
Try blanket-excluding warnings on googletest
This commit is contained in:
parent
bd2cc9e69d
commit
52363d81c9
@ -62,7 +62,6 @@ endif()
|
|||||||
# please try to keep entries ordered =)
|
# please try to keep entries ordered =)
|
||||||
add_library(gsl_tests_config INTERFACE)
|
add_library(gsl_tests_config INTERFACE)
|
||||||
if(MSVC) # MSVC or simulating MSVC
|
if(MSVC) # MSVC or simulating MSVC
|
||||||
message(INFO, "br:MSVC")
|
|
||||||
target_compile_options(gsl_tests_config INTERFACE
|
target_compile_options(gsl_tests_config INTERFACE
|
||||||
${GSL_CPLUSPLUS_OPT}
|
${GSL_CPLUSPLUS_OPT}
|
||||||
/EHsc
|
/EHsc
|
||||||
@ -103,13 +102,13 @@ if(MSVC) # MSVC or simulating MSVC
|
|||||||
>
|
>
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
message(INFO, "br:MSVC:else")
|
target_compile_options(gsl_tests_config PRIVATE
|
||||||
target_compile_options(gsl_tests_config INTERFACE
|
|
||||||
-fno-strict-aliasing
|
-fno-strict-aliasing
|
||||||
-Wall
|
-Wall
|
||||||
-Wcast-align
|
-Wcast-align
|
||||||
-Wconversion
|
-Wconversion
|
||||||
-Wctor-dtor-privacy
|
-Wctor-dtor-privacy
|
||||||
|
-Werror
|
||||||
-Wextra
|
-Wextra
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
-Wshadow
|
-Wshadow
|
||||||
@ -135,6 +134,9 @@ else()
|
|||||||
$<$<CXX_COMPILER_ID:Clang>:
|
$<$<CXX_COMPILER_ID:Clang>:
|
||||||
$<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,4.99>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>:
|
$<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,4.99>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>:
|
||||||
$<$<EQUAL:${GSL_CXX_STANDARD},17>:-Wno-undefined-func-template>
|
$<$<EQUAL:${GSL_CXX_STANDARD},17>:-Wno-undefined-func-template>
|
||||||
|
# $<$<EQUAL:${CMAKE_CXX_STANDARD},20>:-Wzero-as-null-pointer-constant-> # Very noisy, minor, and just so
|
||||||
|
# # happens to trigger on googletest
|
||||||
|
# # for Ubuntu 20.04
|
||||||
>
|
>
|
||||||
>
|
>
|
||||||
$<$<CXX_COMPILER_ID:AppleClang>:
|
$<$<CXX_COMPILER_ID:AppleClang>:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user