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:
Jacob Lambert
2022-11-04 13:50:44 -07:00
committed by Jacob Lambert
parent 91291e48db
commit 02daeb01b4
+2
View File
@@ -46,7 +46,9 @@ endif()
if(CMAKE_COMPILER_IS_GNUCC)
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} -Wno-error=deprecated-declarations")
endif()
option(DISABLE_DIRECT_DISPATCH "Disable Direct Dispatch" OFF)