SWDEV-301667 - Treat build warnings as errors for GCC
Change-Id: I5f9633a94d064969103af7c946c879cacd33efde
This commit is contained in:
@@ -43,6 +43,11 @@ if(ADDRESS_SANITIZER)
|
|||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${ASAN_LINKER_FLAGS}")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${ASAN_LINKER_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||||
|
endif()
|
||||||
|
|
||||||
option(DISABLE_DIRECT_DISPATCH "Disable Direct Dispatch" OFF)
|
option(DISABLE_DIRECT_DISPATCH "Disable Direct Dispatch" OFF)
|
||||||
|
|
||||||
option(BUILD_SHARED_LIBS "Build the shared library" ON)
|
option(BUILD_SHARED_LIBS "Build the shared library" ON)
|
||||||
|
|||||||
Referens i nytt ärende
Block a user