Skip to content

Commit 1320dda

Browse files
committed
[cmake] Change target for compiler warnings
1 parent 72029ee commit 1320dda

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

CMakeLists.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,14 @@ target_compile_options(${PROJECT_NAME}_warnings
111111
$<$<CXX_COMPILER_ID:GNU>:-Wno-comma-subscript>
112112
$<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
113113
$<$<CXX_COMPILER_ID:GNU>:-Wno-attributes>
114-
$<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wno-deprecated-comma-subscript>
115-
$<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wno-unknown-warning-option>
116-
$<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wshadow>
117-
$<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wno-gcc-compat>
118-
$<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wno-c++20-extensions>
119-
$<$<CXX_COMPILER_ID:Clang,IntelLLVM>:-Wno-c++20-compat>
120-
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-deprecated-comma-subscript>
121-
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-unknown-warning-option>
122-
$<$<CXX_COMPILER_ID:AppleClang>:-Wshadow>
123-
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-gcc-compat>
124-
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-c++20-extensions>
125-
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-c++20-compat>
114+
$<$<CXX_COMPILER_ID:GNU>:-Wno-deprecated-declarations>
115+
$<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-deprecated-comma-subscript>
116+
$<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-unknown-warning-option>
117+
$<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wshadow>
118+
$<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-gcc-compat>
119+
$<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-c++20-extensions>
120+
$<$<CXX_COMPILER_ID:AppleClang,Clang,IntelLLVM>:-Wno-c++20-compat>
121+
$<$<CXX_COMPILER_ID:IntelLLVM>:-Wno-tautological-constant-compare>
126122
)
127123

128124
# #############

0 commit comments

Comments
 (0)