cmake lists update

This commit is contained in:
Robin Müller 2021-01-19 16:13:10 +01:00
parent 4cf15e9ec6
commit ffb6208b24
1 changed files with 8 additions and 0 deletions

View File

@ -116,7 +116,15 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
-Wno-unused-parameter
-Wno-psabi
)
if(NOT DEFINED WARNING_SHADOW_LOCAL)
option(WARNING_SHADOW_LOCAL "Show shadows declarations warning." ON)
endif()
if(WARNING_SHADOW_LOCAL)
list(APPEND WARNING_FLAGS "-Wshadow=local")
endif()
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")