[SDK] Fix RelWithDebInfo (#7811)

This commit is contained in:
Justin Miller
2025-03-22 23:12:52 +01:00
committed by GitHub
parent 386fccd02c
commit 6c7d2a2e25

View File

@@ -166,7 +166,7 @@ endif()
add_compile_options(-march=${OARCH} -mtune=${TUNE})
# Warnings, errors
if((NOT CMAKE_BUILD_TYPE STREQUAL "Release") AND (NOT CMAKE_C_COMPILER_ID STREQUAL Clang))
if((NOT CMAKE_BUILD_TYPE STREQUAL "Release") AND (NOT CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") AND (NOT CMAKE_C_COMPILER_ID STREQUAL Clang))
add_compile_options(-Werror)
endif()