3
0
mirror of https://github.com/triqs/dft_tools synced 2024-11-18 12:03:50 +01:00

[cmake] Properly suppress comma subscript warning on both clang and gcc

This commit is contained in:
Nils Wentzell 2020-09-10 10:11:41 -04:00
parent b849c4383d
commit 76cb6414f6

View File

@ -103,12 +103,15 @@ target_compile_options(${PROJECT_NAME}_warnings
-Wextra -Wextra
-Wpedantic -Wpedantic
-Wno-sign-compare -Wno-sign-compare
-Wno-deprecated-comma-subscript $<$<CXX_COMPILER_ID:GNU>:-Wno-comma-subscript>
-Wno-unknown-warning-option
$<$<CXX_COMPILER_ID:GNU>:-Wshadow=local> $<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
$<$<CXX_COMPILER_ID:GNU>:-Wno-attributes> $<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>
$<$<CXX_COMPILER_ID:Clang>:-Wno-deprecated-comma-subscript>
$<$<CXX_COMPILER_ID:Clang>:-Wno-unknown-warning-option>
$<$<CXX_COMPILER_ID:Clang>:-Wshadow> $<$<CXX_COMPILER_ID:Clang>:-Wshadow>
$<$<CXX_COMPILER_ID:Clang>:-Wno-gcc-compat> $<$<CXX_COMPILER_ID:Clang>:-Wno-gcc-compat>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-deprecated-comma-subscript>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-unknown-warning-option>
$<$<CXX_COMPILER_ID:AppleClang>:-Wshadow> $<$<CXX_COMPILER_ID:AppleClang>:-Wshadow>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-gcc-compat> $<$<CXX_COMPILER_ID:AppleClang>:-Wno-gcc-compat>
) )