diff --git a/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake b/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake index 77baf6f4edfdeb..2cb77c4f77d49f 100644 --- a/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake +++ b/packages/react-native/ReactAndroid/cmake-utils/ReactNative-application.cmake @@ -46,7 +46,20 @@ target_include_directories(${CMAKE_PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_BUILD_DIR}/generated/rncli/src/main/jni) -target_compile_options(${CMAKE_PROJECT_NAME} PRIVATE -Wall -Werror -fexceptions -frtti -std=c++17 -DWITH_INSPECTOR=1 -DLOG_TAG=\"ReactNative\") +target_compile_options(${CMAKE_PROJECT_NAME} + PRIVATE + -Wall + -Werror + # We suppress cpp #error and #warning to don't fail the build + # due to use migrating away from + # #include + # This can be removed for React Native 0.73 + -Wno-error=cpp + -fexceptions + -frtti + -std=c++17 + -DWITH_INSPECTOR=1 + -DLOG_TAG=\"ReactNative\") # Prefab packages from React Native find_package(ReactAndroid REQUIRED CONFIG)