cmake lists update
This commit is contained in:
parent
4cf15e9ec6
commit
ffb6208b24
@ -116,7 +116,15 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|||||||
-Wno-unused-parameter
|
-Wno-unused-parameter
|
||||||
-Wno-psabi
|
-Wno-psabi
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(NOT DEFINED WARNING_SHADOW_LOCAL)
|
||||||
|
option(WARNING_SHADOW_LOCAL "Show shadows declarations warning." ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WARNING_SHADOW_LOCAL)
|
||||||
|
list(APPEND WARNING_FLAGS "-Wshadow=local")
|
||||||
|
endif()
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
|
Loading…
Reference in New Issue
Block a user