From 1016d5f2c568614cdc0a2cee25535489478d3896 Mon Sep 17 00:00:00 2001 From: James Chen Date: Tue, 19 Nov 2024 11:47:07 +0800 Subject: [PATCH] Fix compilation errors in CI env. --- native/cmake/predefine.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native/cmake/predefine.cmake b/native/cmake/predefine.cmake index d41f9fe195d..86cc14678bf 100644 --- a/native/cmake/predefine.cmake +++ b/native/cmake/predefine.cmake @@ -131,6 +131,8 @@ if("$ENV{COCOS_ENGINE_DEV}" EQUAL "1") set(WERROR_FLAGS " ${WERROR_FLAGS} -Wno-nullability-completeness -Wno-deprecated-declarations") elseif(ANDROID) set(WERROR_FLAGS " ${WERROR_FLAGS} -Wno-deprecated-declarations -Wno-unknown-warning-option -Wno-deprecated-builtins") + elseif(OPENHARMONY) + set(WERROR_FLAGS " ${WERROR_FLAGS} -Wno-deprecated-declarations -Wno-deprecated-builtins -Wno-unused-command-line-argument -Wno-format") endif() if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")