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

[cmake] Only use Wshadow=local for gcc

This commit is contained in:
Nils Wentzell 2019-10-10 15:59:39 -04:00
parent 09c40e741a
commit 5768a7f748

View File

@ -78,9 +78,10 @@ target_compile_options(project_warnings
INTERFACE
-Wall
-Wextra
-Wshadow
-Wpedantic
-Wno-sign-compare
$<$<CXX_COMPILER_ID:GNU>:-Wshadow=local>
$<$<CXX_COMPILER_ID:Clang>:-Wshadow>
$<$<CXX_COMPILER_ID:Clang>:-Wno-gcc-compat>
)