SWDEV-370606 - Omit deprecation warnings from Werror
Comgr would like to include deprecation warnings for soon-to-be-removed features. Therefore, when building with Comgr headers we need to exclude deprecation warnings from Werror Change-Id: I6c9563be3e066c493dd8e459fc07c7523e2854e3
This commit is contained in:
committed by
Jacob Lambert
orang tua
91291e48db
melakukan
02daeb01b4
@@ -46,7 +46,9 @@ endif()
|
|||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=deprecated-declarations")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(DISABLE_DIRECT_DISPATCH "Disable Direct Dispatch" OFF)
|
option(DISABLE_DIRECT_DISPATCH "Disable Direct Dispatch" OFF)
|
||||||
|
|||||||
Reference in New Issue
Block a user